summaryrefslogtreecommitdiffstats
path: root/nova-model/src/test
diff options
context:
space:
mode:
Diffstat (limited to 'nova-model/src/test')
-rw-r--r--nova-model/src/test/java/com/woorea/openstack/nova/model/SecurityGroupForCreateTest.java44
-rw-r--r--nova-model/src/test/java/com/woorea/openstack/nova/model/SecurityGroupRuleForCreateTest.java94
-rw-r--r--nova-model/src/test/java/com/woorea/openstack/nova/model/SecurityGroupTest.java54
-rw-r--r--nova-model/src/test/java/com/woorea/openstack/nova/model/SecurityGroupsTest.java34
-rw-r--r--nova-model/src/test/java/com/woorea/openstack/nova/model/ServerForCreateTest.java197
-rw-r--r--nova-model/src/test/java/com/woorea/openstack/nova/model/ServerTest.java199
-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/VolumeTypesTest.java29
-rw-r--r--nova-model/src/test/java/com/woorea/openstack/nova/model/VolumesTest.java34
19 files changed, 1364 insertions, 0 deletions
diff --git a/nova-model/src/test/java/com/woorea/openstack/nova/model/SecurityGroupForCreateTest.java b/nova-model/src/test/java/com/woorea/openstack/nova/model/SecurityGroupForCreateTest.java
new file mode 100644
index 0000000..e52dc4c
--- /dev/null
+++ b/nova-model/src/test/java/com/woorea/openstack/nova/model/SecurityGroupForCreateTest.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.model;
+
+import org.junit.Test;
+
+public class SecurityGroupForCreateTest {
+
+ SecurityGroupForCreate securityGroupForCreate = new SecurityGroupForCreate();
+
+ @Test
+ public void getName() throws Exception {
+ securityGroupForCreate.getName();
+ }
+
+ @Test
+ public void setName() throws Exception {
+ securityGroupForCreate.setName("test");
+ }
+
+ @Test
+ public void getDescription() throws Exception {
+ securityGroupForCreate.getDescription();
+ }
+
+ @Test
+ public void setDescription() throws Exception {
+ securityGroupForCreate.setDescription("desc");
+ }
+
+} \ No newline at end of file
diff --git a/nova-model/src/test/java/com/woorea/openstack/nova/model/SecurityGroupRuleForCreateTest.java b/nova-model/src/test/java/com/woorea/openstack/nova/model/SecurityGroupRuleForCreateTest.java
new file mode 100644
index 0000000..0b272f7
--- /dev/null
+++ b/nova-model/src/test/java/com/woorea/openstack/nova/model/SecurityGroupRuleForCreateTest.java
@@ -0,0 +1,94 @@
+/*-
+ * ============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 SecurityGroupRuleForCreateTest {
+
+ SecurityGroupRuleForCreate securityGroupRuleForCreate = new SecurityGroupRuleForCreate();
+
+ @Test
+ public void getParentGroupId() throws Exception {
+ securityGroupRuleForCreate.getParentGroupId();
+ }
+
+ @Test
+ public void setParentGroupId() throws Exception {
+ securityGroupRuleForCreate.setParentGroupId("parent");
+ }
+
+ @Test
+ public void setParentGroupId1() throws Exception {
+ securityGroupRuleForCreate.setParentGroupId(1);
+ }
+
+ @Test
+ public void getFromPort() throws Exception {
+ securityGroupRuleForCreate.getFromPort();
+ }
+
+ @Test
+ public void setFromPort() throws Exception {
+ securityGroupRuleForCreate.setFromPort(80);
+ }
+
+ @Test
+ public void getToPort() throws Exception {
+ securityGroupRuleForCreate.getToPort();
+ }
+
+ @Test
+ public void setToPort() throws Exception {
+ securityGroupRuleForCreate.setToPort(80);
+ }
+
+ @Test
+ public void getIpProtocol() throws Exception {
+ securityGroupRuleForCreate.getIpProtocol();
+ }
+
+ @Test
+ public void setIpProtocol() throws Exception {
+ securityGroupRuleForCreate.setIpProtocol("test");
+ }
+
+ @Test
+ public void getCidr() throws Exception {
+ securityGroupRuleForCreate.getCidr();
+ }
+
+ @Test
+ public void setCidr() throws Exception {
+ securityGroupRuleForCreate.setCidr("test");
+ }
+
+ @Test
+ public void getGroupId() throws Exception {
+ securityGroupRuleForCreate.getGroupId();
+ }
+
+ @Test
+ public void setGroupId() throws Exception {
+ securityGroupRuleForCreate.setGroupId("test");
+ }
+
+ @Test
+ public void setGroupId1() throws Exception {
+ securityGroupRuleForCreate.setGroupId(1);
+ }
+
+} \ No newline at end of file
diff --git a/nova-model/src/test/java/com/woorea/openstack/nova/model/SecurityGroupTest.java b/nova-model/src/test/java/com/woorea/openstack/nova/model/SecurityGroupTest.java
new file mode 100644
index 0000000..a337d45
--- /dev/null
+++ b/nova-model/src/test/java/com/woorea/openstack/nova/model/SecurityGroupTest.java
@@ -0,0 +1,54 @@
+/*-
+ * ============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 SecurityGroupTest {
+
+ SecurityGroup securityGroup = new SecurityGroup();
+
+ @Test
+ public void getId() throws Exception {
+ securityGroup.getId();
+ }
+
+ @Test
+ public void getName() throws Exception {
+ securityGroup.getName();
+ }
+
+ @Test
+ public void getDescription() throws Exception {
+ securityGroup.getDescription();
+ }
+
+ @Test
+ public void getTenantId() throws Exception {
+ securityGroup.getTenantId();
+ }
+
+ @Test
+ public void getRules() throws Exception {
+ securityGroup.getRules();
+ }
+
+ @Test
+ public void getLinks() throws Exception {
+ securityGroup.getLinks();
+ }
+
+} \ No newline at end of file
diff --git a/nova-model/src/test/java/com/woorea/openstack/nova/model/SecurityGroupsTest.java b/nova-model/src/test/java/com/woorea/openstack/nova/model/SecurityGroupsTest.java
new file mode 100644
index 0000000..358a088
--- /dev/null
+++ b/nova-model/src/test/java/com/woorea/openstack/nova/model/SecurityGroupsTest.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 SecurityGroupsTest {
+
+ SecurityGroups securityGroups = new SecurityGroups();
+
+ @Test
+ public void getList() throws Exception {
+ securityGroups.getList();
+ }
+
+ @Test(expected = NullPointerException.class)
+ public void iterator() throws Exception {
+ securityGroups.iterator();
+ }
+
+} \ No newline at end of file
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..bfc9ac4
--- /dev/null
+++ b/nova-model/src/test/java/com/woorea/openstack/nova/model/ServerForCreateTest.java
@@ -0,0 +1,197 @@
+/*-
+ * ============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.Collections;
+import java.util.HashMap;
+
+public class ServerForCreateTest {
+
+ ServerForCreate serverForCreate = new ServerForCreate();
+
+ @Test
+ public void getName() throws Exception {
+ serverForCreate.getName();
+ }
+
+ @Test
+ public void setName() throws Exception {
+ serverForCreate.setName("test");
+ }
+
+ @Test
+ public void getAdminPass() throws Exception {
+ serverForCreate.getAdminPass();
+ }
+
+ @Test
+ public void setAdminPass() throws Exception {
+ serverForCreate.setAdminPass("adminpass");
+ }
+
+ @Test
+ public void getImageRef() throws Exception {
+ serverForCreate.getImageRef();
+ }
+
+ @Test
+ public void setImageRef() throws Exception {
+ serverForCreate.setImageRef("image");
+ }
+
+ @Test
+ public void getFlavorRef() throws Exception {
+ serverForCreate.getFlavorRef();
+ }
+
+ @Test
+ public void setFlavorRef() throws Exception {
+ serverForCreate.setFlavorRef("test");
+ }
+
+ @Test
+ public void getAccessIPv4() throws Exception {
+ serverForCreate.getAccessIPv4();
+ }
+
+ @Test
+ public void setAccessIPv4() throws Exception {
+ serverForCreate.setAccessIPv4("test");
+ }
+
+ @Test
+ public void getAccessIPv6() throws Exception {
+ serverForCreate.getAccessIPv6();
+ }
+
+ @Test
+ public void setAccessIPv6() throws Exception {
+ serverForCreate.setAccessIPv6("ipv6");
+ }
+
+ @Test
+ public void getMin() throws Exception {
+ serverForCreate.getMin();
+ }
+
+ @Test
+ public void setMin() throws Exception {
+ serverForCreate.setMin(1);
+ }
+
+ @Test
+ public void getMax() throws Exception {
+ serverForCreate.setMax(2);
+ }
+
+ @Test
+ public void setMax() throws Exception {
+ serverForCreate.setMax(2);
+ }
+
+ @Test
+ public void getDiskConfig() throws Exception {
+ serverForCreate.getDiskConfig();
+ }
+
+ @Test
+ public void setDiskConfig() throws Exception {
+ serverForCreate.setDiskConfig("config");
+ }
+
+ @Test
+ public void getKeyName() throws Exception {
+ serverForCreate.getKeyName();
+ }
+
+ @Test
+ public void setKeyName() throws Exception {
+ serverForCreate.setKeyName("test");
+ }
+
+ @Test
+ public void getPersonality() throws Exception {
+ serverForCreate.getPersonality();
+ }
+
+ @Test
+ public void setPersonality() throws Exception {
+ serverForCreate.setPersonality(Collections.<PersonalityFile>emptyList());
+ }
+
+ @Test
+ public void getMetadata() throws Exception {
+ serverForCreate.getMetadata();
+ }
+
+ @Test
+ public void setMetadata() throws Exception {
+ serverForCreate.setMetadata(new HashMap<String, String>());
+ }
+
+ @Test
+ public void getSecurityGroups() throws Exception {
+ serverForCreate.getSecurityGroups();
+ }
+
+ @Test
+ public void getUserData() throws Exception {
+ serverForCreate.getUserData();
+ }
+
+ @Test
+ public void setUserData() throws Exception {
+ serverForCreate.setUserData("test");
+ }
+
+ @Test
+ public void getAvailabilityZone() throws Exception {
+ serverForCreate.getAvailabilityZone();
+ }
+
+ @Test
+ public void setAvailabilityZone() throws Exception {
+ serverForCreate.setAvailabilityZone("test");
+ }
+
+ @Test
+ public void isConfigDrive() throws Exception {
+ serverForCreate.isConfigDrive();
+ }
+
+ @Test
+ public void setConfigDrive() throws Exception {
+ serverForCreate.setConfigDrive(true);
+ }
+
+ @Test
+ public void getNetworks() throws Exception {
+ serverForCreate.getNetworks();
+ }
+
+ @Test
+ public void setNetworks() throws Exception {
+ serverForCreate.setNetworks(Collections.<NetworkForCreate>emptyList());
+ }
+
+ @Test
+ public void addNetworks() throws Exception {
+ serverForCreate.addNetworks("test", "localhost");
+ }
+
+} \ No newline at end of file
diff --git a/nova-model/src/test/java/com/woorea/openstack/nova/model/ServerTest.java b/nova-model/src/test/java/com/woorea/openstack/nova/model/ServerTest.java
new file mode 100644
index 0000000..ba1a11d
--- /dev/null
+++ b/nova-model/src/test/java/com/woorea/openstack/nova/model/ServerTest.java
@@ -0,0 +1,199 @@
+/*-
+ * ============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 ServerTest {
+
+ Server server = new Server();
+
+ @Test
+ public void getId() throws Exception {
+ server.getId();
+ }
+
+ @Test
+ public void getName() throws Exception {
+ server.getName();
+ }
+
+ @Test
+ public void getAddresses() throws Exception {
+ server.getAddresses();
+ }
+
+ @Test
+ public void getLinks() throws Exception {
+ server.getLinks();
+ }
+
+ @Test
+ public void getImage() throws Exception {
+ server.getImage();
+ }
+
+ @Test
+ public void setImage() throws Exception {
+ server.setImage(new Image());
+ }
+
+ @Test
+ public void getFlavor() throws Exception {
+ server.getFlavor();
+ }
+
+ @Test
+ public void setFlavor() throws Exception {
+ server.setFlavor(new Flavor());
+ }
+
+ @Test
+ public void getAccessIPv4() throws Exception {
+ server.getAccessIPv4();
+ }
+
+ @Test
+ public void getAccessIPv6() throws Exception {
+ server.getAccessIPv6();
+ }
+
+ @Test
+ public void getConfigDrive() throws Exception {
+ server.getConfigDrive();
+ }
+
+ @Test
+ public void getStatus() throws Exception {
+ server.getStatus();
+ }
+
+ @Test
+ public void getProgress() throws Exception {
+ server.getProgress();
+ }
+
+ @Test
+ public void getFault() throws Exception {
+ server.getFault();
+ }
+
+ @Test
+ public void getTenantId() throws Exception {
+ server.getTenantId();
+ }
+
+ @Test
+ public void getUserId() throws Exception {
+ server.getUserId();
+ }
+
+ @Test
+ public void getKeyName() throws Exception {
+ server.getKeyName();
+ }
+
+ @Test
+ public void getHostId() throws Exception {
+ server.getHostId();
+ }
+
+ @Test
+ public void getUpdated() throws Exception {
+ server.getUpdated();
+ }
+
+ @Test
+ public void getCreated() throws Exception {
+ server.getCreated();
+ }
+
+ @Test
+ public void getMetadata() throws Exception {
+ server.getMetadata();
+ }
+
+ @Test
+ public void getSecurityGroups() throws Exception {
+ server.getSecurityGroups();
+ }
+
+ @Test
+ public void getTaskState() throws Exception {
+ server.getTaskState();
+ }
+
+ @Test
+ public void getPowerState() throws Exception {
+ server.getPowerState();
+ }
+
+ @Test
+ public void getVmState() throws Exception {
+ server.getVmState();
+ }
+
+ @Test
+ public void getHost() throws Exception {
+ server.getHost();
+ }
+
+ @Test
+ public void getInstanceName() throws Exception {
+ server.getInstanceName();
+ }
+
+ @Test
+ public void getHypervisorHostname() throws Exception {
+ server.getHypervisorHostname();
+ }
+
+ @Test
+ public void getDiskConfig() throws Exception {
+ server.getDiskConfig();
+ }
+
+ @Test
+ public void getAvailabilityZone() throws Exception {
+ server.getAvailabilityZone();
+ }
+
+ @Test
+ public void getLaunchedAt() throws Exception {
+ server.getLaunchedAt();
+ }
+
+ @Test
+ public void getTerminatedAt() throws Exception {
+ server.getTerminatedAt();
+ }
+
+ @Test
+ public void getOsExtendedVolumesAttached() throws Exception {
+ server.getOsExtendedVolumesAttached();
+ }
+
+ @Test
+ public void getUuid() throws Exception {
+ server.getUuid();
+ }
+
+ @Test
+ public void getAdminPass() throws Exception {
+ server.getAdminPass();
+ }
+
+} \ 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/VolumeTypesTest.java b/nova-model/src/test/java/com/woorea/openstack/nova/model/VolumeTypesTest.java
new file mode 100644
index 0000000..1cee9a8
--- /dev/null
+++ b/nova-model/src/test/java/com/woorea/openstack/nova/model/VolumeTypesTest.java
@@ -0,0 +1,29 @@
+/*-
+ * ============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 VolumeTypesTest {
+
+ VolumeTypes volumeTypes = new VolumeTypes();
+
+ @Test
+ public void getList() throws Exception {
+ volumeTypes.getList();
+ }
+
+} \ 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