diff options
author | subhash kumar singh <subhash.kumar.singh@huawei.com> | 2018-03-07 05:06:25 +0000 |
---|---|---|
committer | subhash kumar singh <subhash.kumar.singh@huawei.com> | 2018-03-07 05:09:19 +0000 |
commit | 522efc98b91048e82a8e81d608d8c153f14079bc (patch) | |
tree | a20e2422efc0c90dee5083e49ad96be20293e594 | |
parent | e444bde13bacd4a3bd6f0fce4564981f3b9b798c (diff) |
Improve UT for libs
Impove UT for libs.
Change-Id: I98404fb32b0d7b46a23c700e48e605540669a886
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/ResourceTest.java | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/ceilometer-model/src/test/java/com/woorea/openstack/ceilometer/v2/model/ResourceTest.java b/ceilometer-model/src/test/java/com/woorea/openstack/ceilometer/v2/model/ResourceTest.java new file mode 100644 index 0000000..cf0ddcf --- /dev/null +++ b/ceilometer-model/src/test/java/com/woorea/openstack/ceilometer/v2/model/ResourceTest.java @@ -0,0 +1,49 @@ +/*- + * ============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 ResourceTest { + + Resource resource = new Resource(); + + @Test + public void getResourceTest() throws Exception { + resource.getResource(); + } + + @Test + public void getTimestampTest() throws Exception { + resource.getTimestamp(); + } + + @Test + public void getProjectTest() throws Exception { + resource.getProject(); + } + + @Test + public void getUserTest() throws Exception { + resource.getUser(); + } + + @Test + public void getMetadataTest() throws Exception { + resource.getMetadata(); + } + +}
\ No newline at end of file |