summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsubhash kumar singh <subhash.kumar.singh@huawei.com>2018-02-12 09:18:56 +0000
committersubhash kumar singh <subhash.kumar.singh@huawei.com>2018-02-12 09:28:29 +0000
commit0b84e30eb55d320ae3acf3759917775f7fbcfa36 (patch)
tree9301383e481ba875a61e420b9e3f8cad6371792b
parent03990024b0a3a321b4189d7236ff5bcb318bb874 (diff)
Improve code coverage for libs
Improve code coverage for libs. Change-Id: I41e3c84afc0557b6416cdf3735a476a0a693f13a Issue-ID: SO-369 Signed-off-by: subhash kumar singh <subhash.kumar.singh@huawei.com>
-rw-r--r--nova-model/src/test/java/com/woorea/openstack/nova/model/ServerForCreateTest.java157
-rw-r--r--nova-model/src/test/java/com/woorea/openstack/nova/model/ServersTest.java34
-rw-r--r--nova-model/src/test/java/com/woorea/openstack/nova/model/SimpleTenantUsageTest.java107
-rw-r--r--nova-model/src/test/java/com/woorea/openstack/nova/model/SimpleTenantUsagesTest.java34
-rw-r--r--nova-model/src/test/java/com/woorea/openstack/nova/model/SnapshotForCreateTest.java64
-rw-r--r--nova-model/src/test/java/com/woorea/openstack/nova/model/SnapshotTest.java59
-rw-r--r--nova-model/src/test/java/com/woorea/openstack/nova/model/SnapshotsTest.java34
-rw-r--r--nova-model/src/test/java/com/woorea/openstack/nova/model/VolumeAttachmentTest.java64
-rw-r--r--nova-model/src/test/java/com/woorea/openstack/nova/model/VolumeAttachmentsTest.java34
-rw-r--r--nova-model/src/test/java/com/woorea/openstack/nova/model/VolumeForCreateTest.java86
-rw-r--r--nova-model/src/test/java/com/woorea/openstack/nova/model/VolumeForImageCreateTest.java84
-rw-r--r--nova-model/src/test/java/com/woorea/openstack/nova/model/VolumeTest.java79
-rw-r--r--nova-model/src/test/java/com/woorea/openstack/nova/model/VolumesTest.java34
13 files changed, 870 insertions, 0 deletions
diff --git a/nova-model/src/test/java/com/woorea/openstack/nova/model/ServerForCreateTest.java b/nova-model/src/test/java/com/woorea/openstack/nova/model/ServerForCreateTest.java
new file mode 100644
index 0000000..b68b51a
--- /dev/null
+++ b/nova-model/src/test/java/com/woorea/openstack/nova/model/ServerForCreateTest.java
@@ -0,0 +1,157 @@
+/*-
+ * ============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.model;
+
+import org.junit.Test;
+
+public class ServerForCreateTest {
+ @Test
+ public void getName() throws Exception {
+ }
+
+ @Test
+ public void setName() throws Exception {
+ }
+
+ @Test
+ public void getAdminPass() throws Exception {
+ }
+
+ @Test
+ public void setAdminPass() throws Exception {
+ }
+
+ @Test
+ public void getImageRef() throws Exception {
+ }
+
+ @Test
+ public void setImageRef() throws Exception {
+ }
+
+ @Test
+ public void getFlavorRef() throws Exception {
+ }
+
+ @Test
+ public void setFlavorRef() throws Exception {
+ }
+
+ @Test
+ public void getAccessIPv4() throws Exception {
+ }
+
+ @Test
+ public void setAccessIPv4() throws Exception {
+ }
+
+ @Test
+ public void getAccessIPv6() throws Exception {
+ }
+
+ @Test
+ public void setAccessIPv6() throws Exception {
+ }
+
+ @Test
+ public void getMin() throws Exception {
+ }
+
+ @Test
+ public void setMin() throws Exception {
+ }
+
+ @Test
+ public void getMax() throws Exception {
+ }
+
+ @Test
+ public void setMax() throws Exception {
+ }
+
+ @Test
+ public void getDiskConfig() throws Exception {
+ }
+
+ @Test
+ public void setDiskConfig() throws Exception {
+ }
+
+ @Test
+ public void getKeyName() throws Exception {
+ }
+
+ @Test
+ public void setKeyName() throws Exception {
+ }
+
+ @Test
+ public void getPersonality() throws Exception {
+ }
+
+ @Test
+ public void setPersonality() throws Exception {
+ }
+
+ @Test
+ public void getMetadata() throws Exception {
+ }
+
+ @Test
+ public void setMetadata() throws Exception {
+ }
+
+ @Test
+ public void getSecurityGroups() throws Exception {
+ }
+
+ @Test
+ public void getUserData() throws Exception {
+ }
+
+ @Test
+ public void setUserData() throws Exception {
+ }
+
+ @Test
+ public void getAvailabilityZone() throws Exception {
+ }
+
+ @Test
+ public void setAvailabilityZone() throws Exception {
+ }
+
+ @Test
+ public void isConfigDrive() throws Exception {
+ }
+
+ @Test
+ public void setConfigDrive() throws Exception {
+ }
+
+ @Test
+ public void getNetworks() throws Exception {
+ }
+
+ @Test
+ public void setNetworks() throws Exception {
+ }
+
+ @Test
+ public void addNetworks() throws Exception {
+ }
+
+} \ No newline at end of file
diff --git a/nova-model/src/test/java/com/woorea/openstack/nova/model/ServersTest.java b/nova-model/src/test/java/com/woorea/openstack/nova/model/ServersTest.java
new file mode 100644
index 0000000..6bc7034
--- /dev/null
+++ b/nova-model/src/test/java/com/woorea/openstack/nova/model/ServersTest.java
@@ -0,0 +1,34 @@
+/*-
+ * ============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.model;
+
+import org.junit.Test;
+
+public class ServersTest {
+
+ Servers servers = new Servers();
+
+ @Test
+ public void getList() throws Exception {
+ servers.getList();
+ }
+
+ @Test(expected = NullPointerException.class)
+ public void iterator() throws Exception {
+ servers.iterator();
+ }
+
+} \ No newline at end of file
diff --git a/nova-model/src/test/java/com/woorea/openstack/nova/model/SimpleTenantUsageTest.java b/nova-model/src/test/java/com/woorea/openstack/nova/model/SimpleTenantUsageTest.java
new file mode 100644
index 0000000..19a58ad
--- /dev/null
+++ b/nova-model/src/test/java/com/woorea/openstack/nova/model/SimpleTenantUsageTest.java
@@ -0,0 +1,107 @@
+/*-
+ * ============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.model;
+
+import org.junit.Test;
+
+import java.math.BigDecimal;
+import java.util.Collections;
+
+public class SimpleTenantUsageTest {
+
+ SimpleTenantUsage simpleTenantUsage = new SimpleTenantUsage();
+
+ @Test
+ public void getTotalMemoryMbUsage() throws Exception {
+ simpleTenantUsage.getTotalMemoryMbUsage();
+ }
+
+ @Test
+ public void setTotalMemoryMbUsage() throws Exception {
+ simpleTenantUsage.setTotalMemoryMbUsage(new BigDecimal(1));
+ }
+
+ @Test
+ public void getTotalVcpusUsage() throws Exception {
+ simpleTenantUsage.getTotalVcpusUsage();
+ }
+
+ @Test
+ public void setTotalVcpusUsage() throws Exception {
+ simpleTenantUsage.setTotalVcpusUsage(new BigDecimal(1));
+ }
+
+ @Test
+ public void getTotalLocalGbUsage() throws Exception {
+ simpleTenantUsage.getTotalLocalGbUsage();
+ }
+
+ @Test
+ public void setTotalLocalGbUsage() throws Exception {
+ simpleTenantUsage.setTotalLocalGbUsage(BigDecimal.ONE);
+ }
+
+ @Test
+ public void getStart() throws Exception {
+ simpleTenantUsage.getStart();
+ }
+
+ @Test
+ public void setStart() throws Exception {
+ simpleTenantUsage.setStart("test");
+ }
+
+ @Test
+ public void getStop() throws Exception {
+ simpleTenantUsage.getStop();
+ }
+
+ @Test
+ public void setStop() throws Exception {
+ simpleTenantUsage.setStop("test");
+ }
+
+ @Test
+ public void getTenantId() throws Exception {
+ simpleTenantUsage.getTenantId();
+ }
+
+ @Test
+ public void setTenantId() throws Exception {
+ simpleTenantUsage.setTenantId("test");
+ }
+
+ @Test
+ public void getTotalHours() throws Exception {
+ simpleTenantUsage.getTotalHours();
+ }
+
+ @Test
+ public void setTotalHours() throws Exception {
+ simpleTenantUsage.setTotalHours("test");
+ }
+
+ @Test
+ public void getServerUsages() throws Exception {
+ simpleTenantUsage.getServerUsages();
+ }
+
+ @Test
+ public void setServerUsages() throws Exception {
+ simpleTenantUsage.setServerUsages(Collections.<SimpleTenantUsage.ServerUsage>emptyList());
+ }
+
+} \ No newline at end of file
diff --git a/nova-model/src/test/java/com/woorea/openstack/nova/model/SimpleTenantUsagesTest.java b/nova-model/src/test/java/com/woorea/openstack/nova/model/SimpleTenantUsagesTest.java
new file mode 100644
index 0000000..da2b81c
--- /dev/null
+++ b/nova-model/src/test/java/com/woorea/openstack/nova/model/SimpleTenantUsagesTest.java
@@ -0,0 +1,34 @@
+/*-
+ * ============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.model;
+
+import org.junit.Test;
+
+public class SimpleTenantUsagesTest {
+
+ SimpleTenantUsages simpleTenantUsages = new SimpleTenantUsages();
+
+ @Test
+ public void getList() throws Exception {
+ simpleTenantUsages.getList();
+ }
+
+ @Test(expected = NullPointerException.class)
+ public void iterator() throws Exception {
+ simpleTenantUsages.iterator();
+ }
+
+} \ No newline at end of file
diff --git a/nova-model/src/test/java/com/woorea/openstack/nova/model/SnapshotForCreateTest.java b/nova-model/src/test/java/com/woorea/openstack/nova/model/SnapshotForCreateTest.java
new file mode 100644
index 0000000..a02045f
--- /dev/null
+++ b/nova-model/src/test/java/com/woorea/openstack/nova/model/SnapshotForCreateTest.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.model;
+
+import org.junit.Test;
+
+public class SnapshotForCreateTest {
+
+ SnapshotForCreate snapshotForCreate = new SnapshotForCreate();
+
+ @Test
+ public void getVolumeId() throws Exception {
+ snapshotForCreate.getVolumeId();
+ }
+
+ @Test
+ public void setVolumeId() throws Exception {
+ snapshotForCreate.setVolumeId("Test");
+ }
+
+ @Test
+ public void getForce() throws Exception {
+ snapshotForCreate.getForce();
+ }
+
+ @Test
+ public void setForce() throws Exception {
+ snapshotForCreate.setForce(true);
+ }
+
+ @Test
+ public void getName() throws Exception {
+ snapshotForCreate.getName();
+ }
+
+ @Test
+ public void setName() throws Exception {
+ snapshotForCreate.setName("Test");
+ }
+
+ @Test
+ public void getDescription() throws Exception {
+ snapshotForCreate.getDescription();
+ }
+
+ @Test
+ public void setDescription() throws Exception {
+ snapshotForCreate.setDescription("test");
+ }
+
+} \ No newline at end of file
diff --git a/nova-model/src/test/java/com/woorea/openstack/nova/model/SnapshotTest.java b/nova-model/src/test/java/com/woorea/openstack/nova/model/SnapshotTest.java
new file mode 100644
index 0000000..300d008
--- /dev/null
+++ b/nova-model/src/test/java/com/woorea/openstack/nova/model/SnapshotTest.java
@@ -0,0 +1,59 @@
+/*-
+ * ============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.model;
+
+import org.junit.Test;
+
+public class SnapshotTest {
+
+ Snapshot snapshot = new Snapshot();
+
+ @Test
+ public void getId() throws Exception {
+ snapshot.getId();
+ }
+
+ @Test
+ public void getStatus() throws Exception {
+ snapshot.getStatus();
+ }
+
+ @Test
+ public void getName() throws Exception {
+ snapshot.getName();
+ }
+
+ @Test
+ public void getDescription() throws Exception {
+ snapshot.getDescription();
+ }
+
+ @Test
+ public void getVolumeId() throws Exception {
+ snapshot.getVolumeId();
+ }
+
+ @Test
+ public void getSize() throws Exception {
+ snapshot.getSize();
+ }
+
+ @Test
+ public void getCreatedAt() throws Exception {
+ snapshot.getCreatedAt();
+ }
+
+} \ No newline at end of file
diff --git a/nova-model/src/test/java/com/woorea/openstack/nova/model/SnapshotsTest.java b/nova-model/src/test/java/com/woorea/openstack/nova/model/SnapshotsTest.java
new file mode 100644
index 0000000..422a194
--- /dev/null
+++ b/nova-model/src/test/java/com/woorea/openstack/nova/model/SnapshotsTest.java
@@ -0,0 +1,34 @@
+/*-
+ * ============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.model;
+
+import org.junit.Test;
+
+public class SnapshotsTest {
+
+ Snapshots snapshots = new Snapshots();
+
+ @Test
+ public void getList() throws Exception {
+ snapshots.getList();
+ }
+
+ @Test(expected = NullPointerException.class)
+ public void iterator() throws Exception {
+ snapshots.iterator();
+ }
+
+} \ No newline at end of file
diff --git a/nova-model/src/test/java/com/woorea/openstack/nova/model/VolumeAttachmentTest.java b/nova-model/src/test/java/com/woorea/openstack/nova/model/VolumeAttachmentTest.java
new file mode 100644
index 0000000..0614b69
--- /dev/null
+++ b/nova-model/src/test/java/com/woorea/openstack/nova/model/VolumeAttachmentTest.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.model;
+
+import org.junit.Test;
+
+public class VolumeAttachmentTest {
+
+ VolumeAttachment volumeAttachment = new VolumeAttachment();
+
+ @Test
+ public void getId() throws Exception {
+ volumeAttachment.getId();
+ }
+
+ @Test
+ public void setId() throws Exception {
+ volumeAttachment.setId("Test");
+ }
+
+ @Test
+ public void getVolumeId() throws Exception {
+ volumeAttachment.getVolumeId();
+ }
+
+ @Test
+ public void setVolumeId() throws Exception {
+ volumeAttachment.setVolumeId("test");
+ }
+
+ @Test
+ public void getServerId() throws Exception {
+ volumeAttachment.getServerId();
+ }
+
+ @Test
+ public void setServerId() throws Exception {
+ volumeAttachment.setServerId("test");
+ }
+
+ @Test
+ public void getDevice() throws Exception {
+ volumeAttachment.getDevice();
+ }
+
+ @Test
+ public void setDevice() throws Exception {
+ volumeAttachment.setDevice("test");
+ }
+
+} \ No newline at end of file
diff --git a/nova-model/src/test/java/com/woorea/openstack/nova/model/VolumeAttachmentsTest.java b/nova-model/src/test/java/com/woorea/openstack/nova/model/VolumeAttachmentsTest.java
new file mode 100644
index 0000000..cef3804
--- /dev/null
+++ b/nova-model/src/test/java/com/woorea/openstack/nova/model/VolumeAttachmentsTest.java
@@ -0,0 +1,34 @@
+/*-
+ * ============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.model;
+
+import org.junit.Test;
+
+public class VolumeAttachmentsTest {
+
+ VolumeAttachments volumeAttachments = new VolumeAttachments();
+
+ @Test
+ public void getList() throws Exception {
+ volumeAttachments.getList();
+ }
+
+ @Test(expected = NullPointerException.class)
+ public void iterator() throws Exception {
+ volumeAttachments.iterator();
+ }
+
+} \ No newline at end of file
diff --git a/nova-model/src/test/java/com/woorea/openstack/nova/model/VolumeForCreateTest.java b/nova-model/src/test/java/com/woorea/openstack/nova/model/VolumeForCreateTest.java
new file mode 100644
index 0000000..2d7b6b3
--- /dev/null
+++ b/nova-model/src/test/java/com/woorea/openstack/nova/model/VolumeForCreateTest.java
@@ -0,0 +1,86 @@
+/*-
+ * ============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.model;
+
+import org.junit.Test;
+
+import java.util.HashMap;
+
+public class VolumeForCreateTest {
+
+ VolumeForCreate volumeForCreate = new VolumeForCreate();
+
+ @Test
+ public void getSize() throws Exception {
+ volumeForCreate.getSize();
+ }
+
+ @Test
+ public void setSize() throws Exception {
+ volumeForCreate.setSize(1);
+ }
+
+ @Test
+ public void getAvailabilityZone() throws Exception {
+ volumeForCreate.getAvailabilityZone();
+ }
+
+ @Test
+ public void setAvailabilityZone() throws Exception {
+ volumeForCreate.setAvailabilityZone("test");
+ }
+
+ @Test
+ public void getName() throws Exception {
+ volumeForCreate.getName();
+ }
+
+ @Test
+ public void setName() throws Exception {
+ volumeForCreate.setName("test");
+ }
+
+ @Test
+ public void getDescription() throws Exception {
+ volumeForCreate.getDescription();
+ }
+
+ @Test
+ public void setDescription() throws Exception {
+ volumeForCreate.setDescription("test");
+ }
+
+ @Test
+ public void getSnapshotId() throws Exception {
+ volumeForCreate.getSnapshotId();
+ }
+
+ @Test
+ public void setSnapshotId() throws Exception {
+ volumeForCreate.setSnapshotId(1);
+ }
+
+ @Test
+ public void getMetadata() throws Exception {
+ volumeForCreate.getMetadata();
+ }
+
+ @Test
+ public void setMetadata() throws Exception {
+ volumeForCreate.setMetadata(new HashMap<String, String>());
+ }
+
+} \ No newline at end of file
diff --git a/nova-model/src/test/java/com/woorea/openstack/nova/model/VolumeForImageCreateTest.java b/nova-model/src/test/java/com/woorea/openstack/nova/model/VolumeForImageCreateTest.java
new file mode 100644
index 0000000..96a0ae5
--- /dev/null
+++ b/nova-model/src/test/java/com/woorea/openstack/nova/model/VolumeForImageCreateTest.java
@@ -0,0 +1,84 @@
+/*-
+ * ============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.model;
+
+import org.junit.Test;
+
+public class VolumeForImageCreateTest {
+
+ VolumeForImageCreate volumeForImageCreate = new VolumeForImageCreate();
+
+ @Test
+ public void getTenantId() throws Exception {
+ volumeForImageCreate.getTenantId();
+ }
+
+ @Test
+ public void setTenantId() throws Exception {
+ volumeForImageCreate.setTenantId("Test");
+ }
+
+ @Test
+ public void getForce() throws Exception {
+ volumeForImageCreate.getForce();
+ }
+
+ @Test
+ public void setForce() throws Exception {
+ volumeForImageCreate.setForce(true);
+ }
+
+ @Test
+ public void getVolumeId() throws Exception {
+ volumeForImageCreate.getVolumeId();
+ }
+
+ @Test
+ public void setVolumeId() throws Exception {
+ volumeForImageCreate.setVolumeId("testid");
+ }
+
+ @Test
+ public void getContainer_format() throws Exception {
+ volumeForImageCreate.getContainer_format();
+ }
+
+ @Test
+ public void setContainer_format() throws Exception {
+ volumeForImageCreate.setContainer_format("test");
+ }
+
+ @Test
+ public void getDisk_format() throws Exception {
+ volumeForImageCreate.getDisk_format();
+ }
+
+ @Test
+ public void setDisk_format() throws Exception {
+ volumeForImageCreate.setDisk_format("test");
+ }
+
+ @Test
+ public void getImage_name() throws Exception {
+ volumeForImageCreate.getImage_name();
+ }
+
+ @Test
+ public void setImage_name() throws Exception {
+ volumeForImageCreate.setImage_name("test");
+ }
+
+} \ No newline at end of file
diff --git a/nova-model/src/test/java/com/woorea/openstack/nova/model/VolumeTest.java b/nova-model/src/test/java/com/woorea/openstack/nova/model/VolumeTest.java
new file mode 100644
index 0000000..3e56761
--- /dev/null
+++ b/nova-model/src/test/java/com/woorea/openstack/nova/model/VolumeTest.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.nova.model;
+
+import org.junit.Test;
+
+public class VolumeTest {
+
+ Volume volume = new Volume();
+
+ @Test
+ public void getId() throws Exception {
+ volume.getId();
+ }
+
+ @Test
+ public void getStatus() throws Exception {
+ volume.getStatus();
+ }
+
+ @Test
+ public void getName() throws Exception {
+ volume.getName();
+ }
+
+ @Test
+ public void getDescription() throws Exception {
+ volume.getDescription();
+ }
+
+ @Test
+ public void getAvailabilityZone() throws Exception {
+ volume.getAvailabilityZone();
+ }
+
+ @Test
+ public void getVolumeType() throws Exception {
+ volume.getVolumeType();
+ }
+
+ @Test
+ public void getSnapshotId() throws Exception {
+ volume.getSnapshotId();
+ }
+
+ @Test
+ public void getAttachments() throws Exception {
+ volume.getAttachments();
+ }
+
+ @Test
+ public void getMetadata() throws Exception {
+ volume.getMetadata();
+ }
+
+ @Test
+ public void getCreatedAt() throws Exception {
+ volume.getCreatedAt();
+ }
+
+ @Test
+ public void getSize() throws Exception {
+ volume.getSize();
+ }
+
+} \ No newline at end of file
diff --git a/nova-model/src/test/java/com/woorea/openstack/nova/model/VolumesTest.java b/nova-model/src/test/java/com/woorea/openstack/nova/model/VolumesTest.java
new file mode 100644
index 0000000..92cc230
--- /dev/null
+++ b/nova-model/src/test/java/com/woorea/openstack/nova/model/VolumesTest.java
@@ -0,0 +1,34 @@
+/*-
+ * ============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.model;
+
+import org.junit.Test;
+
+public class VolumesTest {
+
+ Volumes volumes = new Volumes();
+
+ @Test
+ public void getList() throws Exception {
+ volumes.getList();
+ }
+
+ @Test(expected = NullPointerException.class)
+ public void iterator() throws Exception {
+ volumes.iterator();
+ }
+
+} \ No newline at end of file