Improve code coverage for libs 81/33781/1
authorsubhash kumar singh <subhash.kumar.singh@huawei.com>
Fri, 2 Mar 2018 09:39:48 +0000 (09:39 +0000)
committersubhash kumar singh <subhash.kumar.singh@huawei.com>
Fri, 2 Mar 2018 09:39:48 +0000 (09:39 +0000)
Improve code coverage for libs.

Change-Id: I30df779e110c76c35766c3ec913745d761ed1d24
Issue-ID: SO-369
Signed-off-by: subhash kumar singh <subhash.kumar.singh@huawei.com>
heat-client/pom.xml
heat-client/src/test/java/com/woorea/openstack/heat/HeatTest.java [new file with mode: 0644]

index f68dbfc..c151841 100644 (file)
                        <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 (file)
index 0000000..e2138da
--- /dev/null
@@ -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