diff options
author | subhash kumar singh <subhash.kumar.singh@huawei.com> | 2018-03-07 05:07:37 +0000 |
---|---|---|
committer | subhash kumar singh <subhash.kumar.singh@huawei.com> | 2018-03-07 05:09:20 +0000 |
commit | f1a033b039b5a1ef64d6688e1882a311a39b8ae1 (patch) | |
tree | 19be81058e04a0c68204ed6d5c751dad7af07ce6 /ceilometer-model/src/test/java | |
parent | d805a34ab4b0dca489aebdd135a228b255e65be5 (diff) |
Improve UT for libs
Improve UT for libs.
Change-Id: I36e02d75cb374d8a8fa829be41471005f80a75b8
Issue-ID: SO-369
Signed-off-by: subhash kumar singh <subhash.kumar.singh@huawei.com>
Diffstat (limited to 'ceilometer-model/src/test/java')
-rw-r--r-- | ceilometer-model/src/test/java/com/woorea/openstack/ceilometer/v2/model/StatisticsTest.java | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/ceilometer-model/src/test/java/com/woorea/openstack/ceilometer/v2/model/StatisticsTest.java b/ceilometer-model/src/test/java/com/woorea/openstack/ceilometer/v2/model/StatisticsTest.java new file mode 100644 index 0000000..f38ec38 --- /dev/null +++ b/ceilometer-model/src/test/java/com/woorea/openstack/ceilometer/v2/model/StatisticsTest.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 StatisticsTest { + + Statistics statistics = new Statistics(); + + @Test + public void getAvgTest() throws Exception { + statistics.getAvg(); + } + + @Test + public void getCountTest() throws Exception { + statistics.getCount(); + } + + @Test + public void getDurationTest() throws Exception { + statistics.getDuration(); + } + + @Test + public void getDurationStartTest() throws Exception { + statistics.getDurationStart(); + } + + @Test + public void getDurationEndTest() throws Exception { + statistics.getDurationEnd(); + } + + @Test + public void getMaxTest() throws Exception { + statistics.getMax(); + } + + @Test + public void getMinTest() throws Exception { + statistics.getMin(); + } + + @Test + public void getPeriodTest() throws Exception { + statistics.getPeriod(); + } + + @Test + public void getPeriodStartTest() throws Exception { + statistics.getPeriodStart(); + } + + @Test + public void getPeriodEndTest() throws Exception { + statistics.getPeriodEnd(); + } + + @Test + public void getSumTest() throws Exception { + statistics.getSum(); + } + +}
\ No newline at end of file |