diff options
author | subhash kumar singh <subhash.kumar.singh@huawei.com> | 2018-02-12 05:37:17 +0000 |
---|---|---|
committer | subhash kumar singh <subhash.kumar.singh@huawei.com> | 2018-02-12 05:37:17 +0000 |
commit | f71f1cc49b06cd3e89801db2ed7c24d28547da52 (patch) | |
tree | bad234f6a9564d72ee6d292628a00a1d22008370 /nova-client/src/test/java/com/woorea/openstack/nova/api/extensions/AggregatesExtensionTest.java | |
parent | 05ac1667ec8690ab6a7623938f2d9a462e07aaec (diff) |
Improve code coverage for libs
Improve code coverage for libs.
Change-Id: I7e6560e0af41cb9756d6eec17dee6e32df3d3ad6
Issue-ID: SO-369
Signed-off-by: subhash kumar singh <subhash.kumar.singh@huawei.com>
Diffstat (limited to 'nova-client/src/test/java/com/woorea/openstack/nova/api/extensions/AggregatesExtensionTest.java')
-rw-r--r-- | nova-client/src/test/java/com/woorea/openstack/nova/api/extensions/AggregatesExtensionTest.java | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/nova-client/src/test/java/com/woorea/openstack/nova/api/extensions/AggregatesExtensionTest.java b/nova-client/src/test/java/com/woorea/openstack/nova/api/extensions/AggregatesExtensionTest.java new file mode 100644 index 0000000..2b05b5d --- /dev/null +++ b/nova-client/src/test/java/com/woorea/openstack/nova/api/extensions/AggregatesExtensionTest.java @@ -0,0 +1,64 @@ +/*- + * ============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.nova.api.extensions; + +import org.junit.Test; + +public class AggregatesExtensionTest { + + AggregatesExtension aggregatesExtension = new AggregatesExtension(null); + + @Test + public void list() throws Exception { + aggregatesExtension.list(); + } + + @Test + public void showAggregate() throws Exception { + aggregatesExtension.showAggregate("test"); + } + + @Test + public void updateAggregateMetadata() throws Exception { + aggregatesExtension.updateAggregateMetadata("test", "test", "test"); + } + + @Test + public void createAggregate() throws Exception { + aggregatesExtension.createAggregate("test", "test"); + } + + @Test + public void deleteAggregate() throws Exception { + aggregatesExtension.deleteAggregate("test"); + } + + @Test + public void addHost() throws Exception { + aggregatesExtension.addHost("test", "test"); + } + + @Test + public void removeHost() throws Exception { + aggregatesExtension.removeHost("test", "test"); + } + + @Test + public void setMetadata() throws Exception { + aggregatesExtension.setMetadata("test", "test", "test"); + } + +}
\ No newline at end of file |