diff options
author | subhash kumar singh <subhash.kumar.singh@huawei.com> | 2018-03-02 09:39:48 +0000 |
---|---|---|
committer | subhash kumar singh <subhash.kumar.singh@huawei.com> | 2018-03-02 09:39:48 +0000 |
commit | 0bc60b3757aa60f295c4fdc843c9cc490aa26097 (patch) | |
tree | aacca80b2f7a33ed137da1579724b59d70954a67 /heat-client | |
parent | eb1a13a069060c73d3b55c47de77fc6b450ca010 (diff) |
Improve code coverage for libs
Improve code coverage for libs.
Change-Id: I30df779e110c76c35766c3ec913745d761ed1d24
Issue-ID: SO-369
Signed-off-by: subhash kumar singh <subhash.kumar.singh@huawei.com>
Diffstat (limited to 'heat-client')
-rw-r--r-- | heat-client/pom.xml | 6 | ||||
-rw-r--r-- | heat-client/src/test/java/com/woorea/openstack/heat/HeatTest.java | 34 |
2 files changed, 40 insertions, 0 deletions
diff --git a/heat-client/pom.xml b/heat-client/pom.xml index f68dbfc..c151841 100644 --- a/heat-client/pom.xml +++ b/heat-client/pom.xml @@ -21,6 +21,12 @@ <artifactId>heat-model</artifactId> <version>1.2.0-SNAPSHOT</version> </dependency> + <dependency> + <groupId>junit</groupId> + <artifactId>junit</artifactId> + <version>4.12</version> + <scope>test</scope> + </dependency> </dependencies> </project>
\ No newline at end of file diff --git a/heat-client/src/test/java/com/woorea/openstack/heat/HeatTest.java b/heat-client/src/test/java/com/woorea/openstack/heat/HeatTest.java new file mode 100644 index 0000000..e2138da --- /dev/null +++ b/heat-client/src/test/java/com/woorea/openstack/heat/HeatTest.java @@ -0,0 +1,34 @@ +/*- + * ============LICENSE_START======================================================= + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ +package com.woorea.openstack.heat; + +import org.junit.Test; + +public class HeatTest { + + Heat heat = new Heat("heat"); + + @Test + public void getStacks() throws Exception { + heat.getStacks(); + } + + @Test + public void getResources() throws Exception { + heat.getResources(); + } + +}
\ No newline at end of file |