Improve UT for libs 09/34409/1
authorsubhash kumar singh <subhash.kumar.singh@huawei.com>
Wed, 7 Mar 2018 05:05:45 +0000 (05:05 +0000)
committersubhash kumar singh <subhash.kumar.singh@huawei.com>
Wed, 7 Mar 2018 05:09:04 +0000 (05:09 +0000)
Improve UT for libs

Change-Id: I67a139cd273f78f762f0f56b992398414ad386de
Issue-ID: SO-369
Signed-off-by: subhash kumar singh <subhash.kumar.singh@huawei.com>
ceilometer-model/pom.xml
ceilometer-model/src/test/java/com/woorea/openstack/ceilometer/v2/model/MeterTest.java [new file with mode: 0644]

index 5d540fe..5d60ac9 100644 (file)
@@ -9,4 +9,13 @@
        <artifactId>ceilometer-model</artifactId>
        <name>OpenStack Ceilometer Model</name>
        <description>OpenStack Ceilometer Model</description>
+
+    <dependencies>
+        <dependency>
+            <groupId>junit</groupId>
+            <artifactId>junit</artifactId>
+            <version>4.12</version>
+            <scope>test</scope>
+        </dependency>
+    </dependencies>
 </project>
diff --git a/ceilometer-model/src/test/java/com/woorea/openstack/ceilometer/v2/model/MeterTest.java b/ceilometer-model/src/test/java/com/woorea/openstack/ceilometer/v2/model/MeterTest.java
new file mode 100644 (file)
index 0000000..12690f6
--- /dev/null
@@ -0,0 +1,54 @@
+/*-
+ * ============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.ceilometer.v2.model;
+
+import org.junit.Test;
+
+public class MeterTest {
+
+    Meter meter = new Meter();
+
+    @Test
+    public void getUserTest() throws Exception {
+        meter.getUser();
+    }
+
+    @Test
+    public void getNameTest() throws Exception {
+        meter.getName();
+    }
+
+    @Test
+    public void getResource() throws Exception {
+        meter.getResource();
+    }
+
+    @Test
+    public void getProjectTest() throws Exception {
+        meter.getProject();
+    }
+
+    @Test
+    public void getTypeTest() throws Exception {
+        meter.getType();
+    }
+
+    @Test
+    public void getUnitTest() throws Exception {
+        meter.getUnit();
+    }
+
+}
\ No newline at end of file