summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsubhash kumar singh <subhash.kumar.singh@huawei.com>2018-03-07 05:07:01 +0000
committersubhash kumar singh <subhash.kumar.singh@huawei.com>2018-03-07 05:09:20 +0000
commitd805a34ab4b0dca489aebdd135a228b255e65be5 (patch)
tree0e6ede6fff6da9c1df22bd0faf1ced2c715582e2
parent522efc98b91048e82a8e81d608d8c153f14079bc (diff)
Improve UT for libs
Improve UT for libs. Change-Id: I9e835a18c051fdca07db917390b0b5f4c0f8da7b Issue-ID: SO-369 Signed-off-by: subhash kumar singh <subhash.kumar.singh@huawei.com>
-rw-r--r--ceilometer-model/src/test/java/com/woorea/openstack/ceilometer/v2/model/SampleTest.java79
1 files changed, 79 insertions, 0 deletions
diff --git a/ceilometer-model/src/test/java/com/woorea/openstack/ceilometer/v2/model/SampleTest.java b/ceilometer-model/src/test/java/com/woorea/openstack/ceilometer/v2/model/SampleTest.java
new file mode 100644
index 0000000..54506a0
--- /dev/null
+++ b/ceilometer-model/src/test/java/com/woorea/openstack/ceilometer/v2/model/SampleTest.java
@@ -0,0 +1,79 @@
+/*-
+ * ============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 SampleTest {
+
+ Sample sample = new Sample();
+
+ @Test
+ public void getCounterTypeTest() throws Exception {
+ sample.getCounterType();
+ }
+
+ @Test
+ public void getCounterNameTest() throws Exception {
+ sample.getCounterName();
+ }
+
+ @Test
+ public void getCounterUnitTest() throws Exception {
+ sample.getCounterUnit();
+ }
+
+ @Test
+ public void getCounterVolumeTest() throws Exception {
+ sample.getCounterVolume();
+ }
+
+ @Test
+ public void getSourceTest() throws Exception {
+ sample.getSource();
+ }
+
+ @Test
+ public void getProjectTest() throws Exception {
+ sample.getProject();
+ }
+
+ @Test
+ public void getUserTest() throws Exception {
+ sample.getUser();
+ }
+
+ @Test
+ public void getResourceTest() throws Exception {
+ sample.getResource();
+ }
+
+ @Test
+ public void getTimestampTest() throws Exception {
+ sample.getTimestamp();
+ }
+
+ @Test
+ public void getMessageTest() throws Exception {
+ sample.getMessage();
+ }
+
+ @Test
+ public void getMetadataTest() throws Exception {
+ sample.getMetadata();
+ }
+
+} \ No newline at end of file