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/KeyPairsExtensionTest.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/KeyPairsExtensionTest.java')
-rw-r--r-- | nova-client/src/test/java/com/woorea/openstack/nova/api/extensions/KeyPairsExtensionTest.java | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/nova-client/src/test/java/com/woorea/openstack/nova/api/extensions/KeyPairsExtensionTest.java b/nova-client/src/test/java/com/woorea/openstack/nova/api/extensions/KeyPairsExtensionTest.java new file mode 100644 index 0000000..976e5d2 --- /dev/null +++ b/nova-client/src/test/java/com/woorea/openstack/nova/api/extensions/KeyPairsExtensionTest.java @@ -0,0 +1,44 @@ +/*- + * ============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 KeyPairsExtensionTest { + + KeyPairsExtension keyPairsExtension = new KeyPairsExtension(null); + + @Test + public void list() throws Exception { + keyPairsExtension.list(); + } + + @Test + public void create() throws Exception { + keyPairsExtension.create("test"); + } + + @Test + public void create1() throws Exception { + keyPairsExtension.create("test"); + } + + @Test + public void delete() throws Exception { + keyPairsExtension.delete("test"); + } + +}
\ No newline at end of file |