summaryrefslogtreecommitdiffstats
path: root/nova-model
diff options
context:
space:
mode:
authorAbhishek Shekhar <abhishek.shekhar1@amdocs.com>2018-02-12 14:00:55 +0530
committerAbhishek Shekhar <abhishek.shekhar1@amdocs.com>2018-02-12 15:32:27 +0530
commit9b16e7e72a97bd90a37c7871363a24e9b205b2a0 (patch)
tree8d0efcd91fca0a82ff095d6bbf4ddeec34b0e398 /nova-model
parentfe355ec81ccaf825479a29e46583bb2d15bdd46a (diff)
Nova Model UTs
Change-Id: I3e72997983bdec151ded4b923e03d0f64b9891e8 Issue-ID: SO-369 Signed-off-by: Abhishek Shekhar <abhishek.shekhar1@amdocs.com>
Diffstat (limited to 'nova-model')
-rw-r--r--nova-model/src/test/java/com/woorea/openstack/nova/model/CertificateTest.java36
-rw-r--r--nova-model/src/test/java/com/woorea/openstack/nova/model/CloudpipeTest.java98
-rw-r--r--nova-model/src/test/java/com/woorea/openstack/nova/model/CloudpipesTest.java29
-rw-r--r--nova-model/src/test/java/com/woorea/openstack/nova/model/ExtensionTest.java56
-rw-r--r--nova-model/src/test/java/com/woorea/openstack/nova/model/FlavorForCreateTest.java106
-rw-r--r--nova-model/src/test/java/com/woorea/openstack/nova/model/FlavorTest.java158
-rw-r--r--nova-model/src/test/java/com/woorea/openstack/nova/model/FloatingIpDomainTest.java46
-rw-r--r--nova-model/src/test/java/com/woorea/openstack/nova/model/FloatingIpPoolsTest.java36
-rw-r--r--nova-model/src/test/java/com/woorea/openstack/nova/model/FloatingIpTest.java51
-rw-r--r--nova-model/src/test/java/com/woorea/openstack/nova/model/HostAggregateTest.java71
-rw-r--r--nova-model/src/test/java/com/woorea/openstack/nova/model/HostTest.java63
-rw-r--r--nova-model/src/test/java/com/woorea/openstack/nova/model/ImageFromVolumeTest.java126
-rw-r--r--nova-model/src/test/java/com/woorea/openstack/nova/model/ImageTest.java140
-rw-r--r--nova-model/src/test/java/com/woorea/openstack/nova/model/KeyPairTest.java61
-rw-r--r--nova-model/src/test/java/com/woorea/openstack/nova/model/LimitsTest.java218
-rw-r--r--nova-model/src/test/java/com/woorea/openstack/nova/model/LinkTest.java40
-rw-r--r--nova-model/src/test/java/com/woorea/openstack/nova/model/MetadataTest.java38
-rw-r--r--nova-model/src/test/java/com/woorea/openstack/nova/model/NetworkForCreateTest.java44
-rw-r--r--nova-model/src/test/java/com/woorea/openstack/nova/model/NetworkTest.java161
-rw-r--r--nova-model/src/test/java/com/woorea/openstack/nova/model/PersonalityFileTest.java46
-rw-r--r--nova-model/src/test/java/com/woorea/openstack/nova/model/QuotaSetTest.java166
21 files changed, 1790 insertions, 0 deletions
diff --git a/nova-model/src/test/java/com/woorea/openstack/nova/model/CertificateTest.java b/nova-model/src/test/java/com/woorea/openstack/nova/model/CertificateTest.java
new file mode 100644
index 0000000..5439904
--- /dev/null
+++ b/nova-model/src/test/java/com/woorea/openstack/nova/model/CertificateTest.java
@@ -0,0 +1,36 @@
+/*-
+ * ============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 static org.junit.Assert.*;
+
+public class CertificateTest {
+
+ private Certificate certificate = new Certificate();
+
+ @Test
+ public void getData() {
+ certificate.getData();
+ }
+
+ @Test
+ public void getPrivateKey() {
+ certificate.getPrivateKey();
+ }
+
+} \ No newline at end of file
diff --git a/nova-model/src/test/java/com/woorea/openstack/nova/model/CloudpipeTest.java b/nova-model/src/test/java/com/woorea/openstack/nova/model/CloudpipeTest.java
new file mode 100644
index 0000000..a35676f
--- /dev/null
+++ b/nova-model/src/test/java/com/woorea/openstack/nova/model/CloudpipeTest.java
@@ -0,0 +1,98 @@
+/*-
+ * ============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.Calendar;
+
+import static org.junit.Assert.*;
+
+public class CloudpipeTest {
+
+ private Cloudpipe pipe = new Cloudpipe();
+
+ @Test
+ public void getProjectId() {
+ pipe.getProjectId();
+ }
+
+ @Test
+ public void setProjectId() {
+ pipe.setProjectId("1234");
+ }
+
+ @Test
+ public void getInternalIp() {
+ pipe.getInternalIp();
+ }
+
+ @Test
+ public void setInternalIp() {
+ pipe.setInternalIp("123");
+ }
+
+ @Test
+ public void getPublicIp() {
+ pipe.getPublicIp();
+ }
+
+ @Test
+ public void setPublicIp() {
+ pipe.setPublicIp("1234");
+ }
+
+ @Test
+ public void getPublicPort() {
+ pipe.getPublicPort();
+ }
+
+ @Test
+ public void setPublicPort() {
+ pipe.setPublicPort("1234");
+ }
+
+ @Test
+ public void getState() {
+ pipe.getState();
+ }
+
+ @Test
+ public void setState() {
+ pipe.setState("1234");
+ }
+
+ @Test
+ public void getInstanceId() {
+ pipe.getInstanceId();
+ }
+
+ @Test
+ public void setInstanceId() {
+ pipe.setInstanceId("1234");
+ }
+
+ @Test
+ public void getCreatedAt() {
+ pipe.getCreatedAt();
+ }
+
+ @Test
+ public void setCreatedAt() {
+ pipe.setCreatedAt(Calendar.getInstance());
+ }
+} \ No newline at end of file
diff --git a/nova-model/src/test/java/com/woorea/openstack/nova/model/CloudpipesTest.java b/nova-model/src/test/java/com/woorea/openstack/nova/model/CloudpipesTest.java
new file mode 100644
index 0000000..810bd21
--- /dev/null
+++ b/nova-model/src/test/java/com/woorea/openstack/nova/model/CloudpipesTest.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;
+
+import static org.junit.Assert.*;
+
+public class CloudpipesTest {
+
+ @Test
+ public void getList() {
+ new Cloudpipes().getList();
+ }
+} \ No newline at end of file
diff --git a/nova-model/src/test/java/com/woorea/openstack/nova/model/ExtensionTest.java b/nova-model/src/test/java/com/woorea/openstack/nova/model/ExtensionTest.java
new file mode 100644
index 0000000..d7361a4
--- /dev/null
+++ b/nova-model/src/test/java/com/woorea/openstack/nova/model/ExtensionTest.java
@@ -0,0 +1,56 @@
+/*-
+ * ============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 static org.junit.Assert.*;
+
+public class ExtensionTest {
+
+ private Extension extension = new Extension();
+
+ @Test
+ public void getAlias() {
+ extension.getAlias();
+ }
+
+ @Test
+ public void getDescription() {
+ extension.getDescription();
+ }
+
+ @Test
+ public void getName() {
+ extension.getName();
+ }
+
+ @Test
+ public void getNamespace() {
+ extension.getNamespace();
+ }
+
+ @Test
+ public void getUpdated() {
+ extension.getUpdated();
+ }
+
+ @Test
+ public void getLinks() {
+ extension.getLinks();
+ }
+} \ No newline at end of file
diff --git a/nova-model/src/test/java/com/woorea/openstack/nova/model/FlavorForCreateTest.java b/nova-model/src/test/java/com/woorea/openstack/nova/model/FlavorForCreateTest.java
new file mode 100644
index 0000000..c48056f
--- /dev/null
+++ b/nova-model/src/test/java/com/woorea/openstack/nova/model/FlavorForCreateTest.java
@@ -0,0 +1,106 @@
+/*-
+ * ============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 static org.junit.Assert.*;
+
+public class FlavorForCreateTest {
+
+ private FlavorForCreate flavor = new FlavorForCreate();
+
+ @Test
+ public void getId() {
+ flavor.getId();
+ }
+
+ @Test
+ public void setId() {
+ flavor.setId("123");
+ }
+
+ @Test
+ public void getName() {
+ flavor.getName();
+ }
+
+ @Test
+ public void setName() {
+ flavor.setName("123");
+ }
+
+ @Test
+ public void getVcpus() {
+ flavor.getVcpus();
+ }
+
+ @Test
+ public void setVcpus() {
+ flavor.setVcpus("123");
+ }
+
+ @Test
+ public void getRam() {
+ flavor.getRam();
+ }
+
+ @Test
+ public void setRam() {
+ flavor.setRam(123);
+ }
+
+ @Test
+ public void getDisk() {
+ flavor.getDisk();
+ }
+
+ @Test
+ public void setDisk() {
+ flavor.setDisk("123");
+ }
+
+ @Test
+ public void getEphemeral() {
+ flavor.getEphemeral();
+ }
+
+ @Test
+ public void setEphemeral() {
+ flavor.setEphemeral(123);
+ }
+
+ @Test
+ public void getSwap() {
+ flavor.getSwap();
+ }
+
+ @Test
+ public void setSwap() {
+ flavor.setSwap("123");
+ }
+
+ @Test
+ public void getRxtxFactor() {
+ flavor.getRxtxFactor();
+ }
+
+ @Test
+ public void setRxtxFactor() {
+ flavor.setRxtxFactor(123.0f);
+ }
+} \ No newline at end of file
diff --git a/nova-model/src/test/java/com/woorea/openstack/nova/model/FlavorTest.java b/nova-model/src/test/java/com/woorea/openstack/nova/model/FlavorTest.java
new file mode 100644
index 0000000..1f3b55e
--- /dev/null
+++ b/nova-model/src/test/java/com/woorea/openstack/nova/model/FlavorTest.java
@@ -0,0 +1,158 @@
+/*-
+ * ============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 static org.junit.Assert.*;
+
+public class FlavorTest {
+
+ private Flavor flavor = new Flavor();
+
+ @Test
+ public void getId() {
+ flavor.getId();
+ }
+
+ @Test
+ public void setId() {
+ flavor.setId("123");
+ }
+
+ @Test
+ public void getName() {
+ flavor.getName();
+ }
+
+ @Test
+ public void setName() {
+ flavor.setName("123");
+ }
+
+ @Test
+ public void getVcpus() {
+ flavor.getVcpus();
+ }
+
+ @Test
+ public void setVcpus() {
+ flavor.setVcpus(123);
+ }
+
+ @Test
+ public void getRam() {
+ flavor.getRam();
+ }
+
+ @Test
+ public void setRam() {
+ flavor.setRam(123);
+ }
+
+ @Test
+ public void getDisk() {
+ flavor.getDisk();
+ }
+
+ @Test
+ public void setDisk() {
+ flavor.setDisk(123);
+ }
+
+ @Test
+ public void getEphemeral() {
+ flavor.getEphemeral();
+ }
+
+ @Test
+ public void setEphemeral() {
+ flavor.setEphemeral(123);
+ }
+
+ @Test
+ public void getSwap() {
+ flavor.getSwap();
+ }
+
+ @Test
+ public void setSwap() {
+ flavor.setSwap("123");
+ }
+
+ @Test
+ public void getRxtxFactor() {
+ flavor.getRxtxFactor();
+ }
+
+ @Test
+ public void setRxtxFactor() {
+ flavor.setRxtxFactor(123.0f);
+ }
+
+ @Test
+ public void getRxtxQuota() {
+ flavor.getRxtxQuota();
+ }
+
+ @Test
+ public void setRxtxQuota() {
+ flavor.setRxtxQuota(123);
+ }
+
+ @Test
+ public void getRxtxCap() {
+ flavor.getRxtxCap();
+ }
+
+ @Test
+ public void setRxtxCap() {
+ flavor.setRxtxCap(123);
+ }
+
+ @Test
+ public void getDisabled() {
+ flavor.getDisabled();
+ }
+
+ @Test
+ public void setDisabled() {
+ flavor.setDisabled(true);
+ }
+
+ @Test
+ public void isPublic() {
+ flavor.isPublic();
+ }
+
+ @Test
+ public void setPublic() {
+ flavor.setPublic(true);
+ }
+
+ @Test
+ public void getLinks() {
+ flavor.getLinks();
+ }
+
+ @Test
+ public void setLinks() {
+ flavor.setLinks(Collections.<Link>emptyList());
+ }
+} \ No newline at end of file
diff --git a/nova-model/src/test/java/com/woorea/openstack/nova/model/FloatingIpDomainTest.java b/nova-model/src/test/java/com/woorea/openstack/nova/model/FloatingIpDomainTest.java
new file mode 100644
index 0000000..eb49004
--- /dev/null
+++ b/nova-model/src/test/java/com/woorea/openstack/nova/model/FloatingIpDomainTest.java
@@ -0,0 +1,46 @@
+/*-
+ * ============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 static org.junit.Assert.*;
+
+public class FloatingIpDomainTest {
+
+ private FloatingIpDomain domain = new FloatingIpDomain();;
+
+ @Test
+ public void getDomain() {
+ domain.getDomain();
+ }
+
+ @Test
+ public void getScope() {
+ domain.getScope();
+ }
+
+ @Test
+ public void getProject() {
+ domain.getProject();
+ }
+
+ @Test
+ public void getAvailabilityZone() {
+ domain.getAvailabilityZone();
+ }
+} \ No newline at end of file
diff --git a/nova-model/src/test/java/com/woorea/openstack/nova/model/FloatingIpPoolsTest.java b/nova-model/src/test/java/com/woorea/openstack/nova/model/FloatingIpPoolsTest.java
new file mode 100644
index 0000000..53f14d4
--- /dev/null
+++ b/nova-model/src/test/java/com/woorea/openstack/nova/model/FloatingIpPoolsTest.java
@@ -0,0 +1,36 @@
+/*-
+ * ============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 static org.junit.Assert.*;
+
+public class FloatingIpPoolsTest {
+
+ private FloatingIpPools pools = new FloatingIpPools();
+
+ @Test
+ public void getList() {
+ pools.getList();
+ }
+
+ @Test
+ public void iterator() {
+ pools.getList();
+ }
+} \ No newline at end of file
diff --git a/nova-model/src/test/java/com/woorea/openstack/nova/model/FloatingIpTest.java b/nova-model/src/test/java/com/woorea/openstack/nova/model/FloatingIpTest.java
new file mode 100644
index 0000000..75fb7c4
--- /dev/null
+++ b/nova-model/src/test/java/com/woorea/openstack/nova/model/FloatingIpTest.java
@@ -0,0 +1,51 @@
+/*-
+ * ============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 static org.junit.Assert.*;
+
+public class FloatingIpTest {
+
+ private FloatingIp ip = new FloatingIp();
+
+ @Test
+ public void getId() {
+ ip.getId();
+ }
+
+ @Test
+ public void getPool() {
+ ip.getPool();
+ }
+
+ @Test
+ public void getIp() {
+ ip.getIp();
+ }
+
+ @Test
+ public void getFixedIp() {
+ ip.getFixedIp();
+ }
+
+ @Test
+ public void getInstanceId() {
+ ip.getInstanceId();
+ }
+} \ No newline at end of file
diff --git a/nova-model/src/test/java/com/woorea/openstack/nova/model/HostAggregateTest.java b/nova-model/src/test/java/com/woorea/openstack/nova/model/HostAggregateTest.java
new file mode 100644
index 0000000..8057570
--- /dev/null
+++ b/nova-model/src/test/java/com/woorea/openstack/nova/model/HostAggregateTest.java
@@ -0,0 +1,71 @@
+/*-
+ * ============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 static org.junit.Assert.*;
+
+public class HostAggregateTest {
+
+ private HostAggregate host = new HostAggregate();
+
+ @Test
+ public void getId() {
+ host.getId();
+ }
+
+ @Test
+ public void getName() {
+ host.getName();
+ }
+
+ @Test
+ public void getAvailabilityZone() {
+ host.getAvailabilityZone();
+ }
+
+ @Test
+ public void getCreatedAt() {
+ host.getCreatedAt();
+ }
+
+ @Test
+ public void getUpdatedAt() {
+ host.getUpdatedAt();
+ }
+
+ @Test
+ public void getDeletedAt() {
+ host.getDeletedAt();
+ }
+
+ @Test
+ public void getDeleted() {
+ host.getDeleted();
+ }
+
+ @Test
+ public void getHosts() {
+ host.getHosts();
+ }
+
+ @Test
+ public void getMetadata() {
+ host.getMetadata();
+ }
+} \ No newline at end of file
diff --git a/nova-model/src/test/java/com/woorea/openstack/nova/model/HostTest.java b/nova-model/src/test/java/com/woorea/openstack/nova/model/HostTest.java
new file mode 100644
index 0000000..9c959bc
--- /dev/null
+++ b/nova-model/src/test/java/com/woorea/openstack/nova/model/HostTest.java
@@ -0,0 +1,63 @@
+/*-
+ * ============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 static org.junit.Assert.*;
+
+public class HostTest {
+
+ private Host host = new Host();
+ private Host.ResourceWrapper wrapper = new Host.ResourceWrapper();
+ private Host.ResourceWrapper.Resource resource = new Host.ResourceWrapper.Resource();
+
+ @Test
+ public void getHost() {
+ host.getHost();
+ }
+
+ @Test
+ public void getResource() {
+ wrapper.getResource();
+ }
+
+ @Test
+ public void getProject() {
+ resource.getProject();
+ }
+
+ @Test
+ public void getMemoryMb() {
+ resource.getMemoryMb();
+ }
+
+ @Test
+ public void getHostResource() {
+ resource.getHost();
+ }
+
+ @Test
+ public void getCpu() {
+ resource.getCpu();
+ }
+
+ @Test
+ public void getDiskGb() {
+ resource.getDiskGb();
+ }
+} \ No newline at end of file
diff --git a/nova-model/src/test/java/com/woorea/openstack/nova/model/ImageFromVolumeTest.java b/nova-model/src/test/java/com/woorea/openstack/nova/model/ImageFromVolumeTest.java
new file mode 100644
index 0000000..66404fc
--- /dev/null
+++ b/nova-model/src/test/java/com/woorea/openstack/nova/model/ImageFromVolumeTest.java
@@ -0,0 +1,126 @@
+/*-
+ * ============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 static org.junit.Assert.*;
+
+public class ImageFromVolumeTest {
+
+ private ImageFromVolume image = new ImageFromVolume();
+
+ @Test
+ public void getId() {
+ image.getId();
+ }
+
+ @Test
+ public void setId() {
+ image.setId("123");
+ }
+
+ @Test
+ public void getUpdates_at() {
+ image.getUpdates_at();
+ }
+
+ @Test
+ public void setUpdates_at() {
+ image.setUpdates_at("123");
+ }
+
+ @Test
+ public void getStatus() {
+ image.getStatus();
+ }
+
+ @Test
+ public void setStatus() {
+ image.setStatus("123");
+ }
+
+ @Test
+ public void getDisplay_description() {
+ image.getDisplay_description();
+ }
+
+ @Test
+ public void setDisplay_description() {
+ image.setDisplay_description("123");
+ }
+
+ @Test
+ public void getSize() {
+ image.getSize();
+ }
+
+ @Test
+ public void setSize() {
+ image.setSize("123");
+ }
+
+ @Test
+ public void getVolume_type() {
+ image.getVolume_type();
+ }
+
+ @Test
+ public void setVolume_type() {
+ image.setVolume_type("123");
+ }
+
+ @Test
+ public void getImage_id() {
+ image.getImage_id();
+ }
+
+ @Test
+ public void setImage_id() {
+ image.setImage_id("123");
+ }
+
+ @Test
+ public void getContainer_format() {
+ image.getContainer_format();
+ }
+
+ @Test
+ public void setContainer_format() {
+ image.setContainer_format("123");
+ }
+
+ @Test
+ public void getDisk_format() {
+ image.getDisk_format();
+ }
+
+ @Test
+ public void setDisk_format() {
+ image.setDisk_format("123");
+ }
+
+ @Test
+ public void getImage_name() {
+ image.getImage_name();
+ }
+
+ @Test
+ public void setImage_name() {
+ image.setImage_name("123");
+ }
+} \ No newline at end of file
diff --git a/nova-model/src/test/java/com/woorea/openstack/nova/model/ImageTest.java b/nova-model/src/test/java/com/woorea/openstack/nova/model/ImageTest.java
new file mode 100644
index 0000000..3bbc746
--- /dev/null
+++ b/nova-model/src/test/java/com/woorea/openstack/nova/model/ImageTest.java
@@ -0,0 +1,140 @@
+/*-
+ * ============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.io.PrintStream;
+import java.util.Calendar;
+import java.util.Collections;
+
+import static org.junit.Assert.*;
+
+public class ImageTest {
+
+ private Image image = new Image();
+
+ @Test
+ public void getId() {
+ image.getId();
+ }
+
+ @Test
+ public void setId() {
+ image.setId("123");
+ }
+
+ @Test
+ public void getStatus() {
+ image.getStatus();
+ }
+
+ @Test
+ public void setStatus() {
+ image.setStatus("123");
+ }
+
+ @Test
+ public void getName() {
+ image.setName("123");
+ }
+
+ @Test
+ public void setName() {
+ image.setName("123");
+ }
+
+ @Test
+ public void getProgress() {
+ image.getProgress();
+ }
+
+ @Test
+ public void setProgress() {
+ image.setProgress(123);
+ }
+
+ @Test
+ public void getMinRam() {
+ image.getMinRam();
+ }
+
+ @Test
+ public void setMinRam() {
+ image.setMinRam(123);
+ }
+
+ @Test
+ public void getMinDisk() {
+ image.getMinDisk();
+ }
+
+ @Test
+ public void setMinDisk() {
+ image.setMinDisk(123);
+ }
+
+ @Test
+ public void getCreated() {
+ image.getCreated();
+ }
+
+ @Test
+ public void setCreated() {
+ image.setCreated(Calendar.getInstance());
+ }
+
+ @Test
+ public void getUpdated() {
+ image.getUpdated();
+ }
+
+ @Test
+ public void setUpdated() {
+ image.setUpdated(Calendar.getInstance());
+ }
+
+ @Test
+ public void getMetadata() {
+ image.getMetadata();
+ }
+
+ @Test
+ public void getSize() {
+ image.getSize();
+ }
+
+ @Test
+ public void setMetadata() {
+ image.setMetadata(Collections.<String, String>emptyMap());
+ }
+
+ @Test
+ public void getServer() {
+ image.getServer();
+ }
+
+ @Test
+ public void getLinks() {
+ image.getLinks();
+ }
+
+ @Test
+ public void setLinks() {
+ image.setLinks(Collections.<Link>emptyList());
+ }
+} \ No newline at end of file
diff --git a/nova-model/src/test/java/com/woorea/openstack/nova/model/KeyPairTest.java b/nova-model/src/test/java/com/woorea/openstack/nova/model/KeyPairTest.java
new file mode 100644
index 0000000..487cc84
--- /dev/null
+++ b/nova-model/src/test/java/com/woorea/openstack/nova/model/KeyPairTest.java
@@ -0,0 +1,61 @@
+/*-
+ * ============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 static org.junit.Assert.*;
+
+public class KeyPairTest {
+
+ private KeyPair pair = new KeyPair();
+
+ @Test
+ public void getName() {
+ pair.getName();
+ }
+
+ @Test
+ public void setName() {
+ pair.setName("123");
+ }
+
+ @Test
+ public void getUserId() {
+ pair.getUserId();
+ }
+
+ @Test
+ public void getPublicKey() {
+ pair.getPublicKey();
+ }
+
+ @Test
+ public void setPublicKey() {
+ pair.setPublicKey("123");
+ }
+
+ @Test
+ public void getPrivateKey() {
+ pair.getPrivateKey();
+ }
+
+ @Test
+ public void getFingerprint() {
+ pair.getFingerprint();
+ }
+} \ No newline at end of file
diff --git a/nova-model/src/test/java/com/woorea/openstack/nova/model/LimitsTest.java b/nova-model/src/test/java/com/woorea/openstack/nova/model/LimitsTest.java
new file mode 100644
index 0000000..f6aba6e
--- /dev/null
+++ b/nova-model/src/test/java/com/woorea/openstack/nova/model/LimitsTest.java
@@ -0,0 +1,218 @@
+/*-
+ * ============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.Calendar;
+import java.util.List;
+
+import static org.junit.Assert.*;
+
+public class LimitsTest {
+
+ private Limits limits = new Limits();
+ private Limits.AbsoluteLimit aLimit = new Limits.AbsoluteLimit();
+ private Limits.RateLimit rLimit = new Limits.RateLimit();
+ private Limits.RateLimit.LimitEntry entry = new Limits.RateLimit.LimitEntry();
+
+ @Test
+ public void getNextAvailable() {
+ entry.getNextAvailable();
+ }
+
+ @Test
+ public void getUnit() {
+ entry.getUnit();
+ }
+
+ @Test
+ public void getVerb() {
+ entry.getVerb();
+ }
+
+ @Test
+ public void getRemaining() {
+ entry.getRemaining();
+ }
+
+ @Test
+ public void getAvailable() {
+ entry.getAvailable();
+ }
+
+ @Test
+ public void getValue() {
+ entry.getValue();
+ }
+
+ @Test
+ public void getRate() {
+ limits.getRate();
+ }
+
+ @Test
+ public void getAbsolute() {
+ limits.getAbsolute();
+ }
+
+ @Test
+ public void getRegex() {
+ rLimit.getRegex();
+ }
+
+ @Test
+ public void getUri() {
+ rLimit.getUri();
+ }
+
+ @Test
+ public void getLimit() {
+ rLimit.getLimit();
+ }
+
+ @Test
+ public void getMaxServerMeta() {
+ aLimit.getMaxServerMeta();
+ }
+
+ @Test
+ public void getMaxPersonality() {
+ aLimit.getMaxPersonality();
+ }
+
+ @Test
+ public void getMaxImageMeta() {
+ aLimit.getMaxImageMeta();
+ }
+
+ @Test
+ public void getMaxPersonalitySize() {
+ aLimit.getMaxPersonalitySize();
+ }
+
+ @Test
+ public void getMaxTotalCores() {
+ aLimit.getMaxTotalCores();
+ }
+
+ @Test
+ public void getMaxTotalInstances() {
+ aLimit.getMaxTotalInstances();
+ }
+
+ @Test
+ public void getMaxTotalRAMSize() {
+ aLimit.getMaxTotalRAMSize();
+ }
+
+ @Test
+ public void getTotalVolumesUsed() {
+ aLimit.getTotalVolumesUsed();
+ }
+
+ @Test
+ public void getMaxSecurityGroupRules() {
+ aLimit.getMaxSecurityGroupRules();
+ }
+
+ @Test
+ public void getMaxTotalKeypairs() {
+ aLimit.getMaxTotalKeypairs();
+ }
+
+ @Test
+ public void getTotalCoresUsed() {
+ aLimit.getTotalCoresUsed();
+ }
+
+ @Test
+ public void getMaxTotalVolumes() {
+ aLimit.getMaxTotalVolumes();
+ }
+
+ @Test
+ public void getTotalRAMUsed() {
+ aLimit.getTotalRAMUsed();
+ }
+
+ @Test
+ public void getTotalInstancesUsed() {
+ aLimit.getTotalInstancesUsed();
+ }
+
+ @Test
+ public void getMaxSecurityGroups() {
+ aLimit.getMaxSecurityGroups();
+ }
+
+ @Test
+ public void getTotalVolumeGigabytesUsed() {
+ aLimit.getTotalVolumeGigabytesUsed();
+ }
+
+ @Test
+ public void getTotalSecurityGroupsUsed() {
+ aLimit.getTotalSecurityGroupsUsed();
+ }
+
+ @Test
+ public void getMaxTotalFloatingIps() {
+ aLimit.getMaxTotalFloatingIps();
+ }
+
+ @Test
+ public void getTotalKeyPairsUsed() {
+ aLimit.getTotalKeyPairsUsed();
+ }
+
+ @Test
+ public void getMaxTotalVolumeGigabytes() {
+ aLimit.getMaxTotalVolumeGigabytes();
+ }
+
+ @Test
+ public void getServerMetaUsed() {
+ aLimit.getServerMetaUsed();
+ }
+
+ @Test
+ public void getPersonalityUsed() {
+ aLimit.getPersonalityUsed();
+ }
+
+ @Test
+ public void getImageMetaUsed() {
+ aLimit.getImageMetaUsed();
+ }
+
+ @Test
+ public void getPersonalitySizeUsed() {
+ aLimit.getPersonalitySizeUsed();
+ }
+
+ @Test
+ public void getSecurityGroupRulesUsed() {
+ aLimit.getSecurityGroupRulesUsed();
+ }
+
+ @Test
+ public void getTotalFloatingIpsUsed() {
+ aLimit.getTotalFloatingIpsUsed();
+ }
+
+} \ No newline at end of file
diff --git a/nova-model/src/test/java/com/woorea/openstack/nova/model/LinkTest.java b/nova-model/src/test/java/com/woorea/openstack/nova/model/LinkTest.java
new file mode 100644
index 0000000..01adc49
--- /dev/null
+++ b/nova-model/src/test/java/com/woorea/openstack/nova/model/LinkTest.java
@@ -0,0 +1,40 @@
+/*-
+ * ============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 static org.junit.Assert.*;
+
+public class LinkTest {
+ private Link link = new Link();
+
+ @Test
+ public void getRel() {
+ link.getRel();
+ }
+
+ @Test
+ public void getHref() {
+ link.getHref();
+ }
+
+ @Test
+ public void getType() {
+ link.getType();
+ }
+} \ No newline at end of file
diff --git a/nova-model/src/test/java/com/woorea/openstack/nova/model/MetadataTest.java b/nova-model/src/test/java/com/woorea/openstack/nova/model/MetadataTest.java
new file mode 100644
index 0000000..32593f2
--- /dev/null
+++ b/nova-model/src/test/java/com/woorea/openstack/nova/model/MetadataTest.java
@@ -0,0 +1,38 @@
+/*-
+ * ============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 static org.junit.Assert.*;
+
+public class MetadataTest {
+
+ private Metadata metadata = new Metadata();
+
+ @Test
+ public void getMetadata() {
+ metadata.getMetadata();
+ }
+
+ @Test
+ public void setMetadata() {
+ metadata.setMetadata(Collections.<String, String>emptyMap());
+ }
+} \ No newline at end of file
diff --git a/nova-model/src/test/java/com/woorea/openstack/nova/model/NetworkForCreateTest.java b/nova-model/src/test/java/com/woorea/openstack/nova/model/NetworkForCreateTest.java
new file mode 100644
index 0000000..00bc3cb
--- /dev/null
+++ b/nova-model/src/test/java/com/woorea/openstack/nova/model/NetworkForCreateTest.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 NetworkForCreateTest {
+
+ private NetworkForCreate network = new NetworkForCreate();
+
+ @Test
+ public void getId() {
+ network.getId();
+ }
+
+ @Test
+ public void getFixedIp() {
+ network.getFixedIp();
+ }
+
+ @Test
+ public void setId() {
+ network.setId("123");
+ }
+
+ @Test
+ public void setFixedIp() {
+ network.setFixedIp("123");
+ }
+} \ No newline at end of file
diff --git a/nova-model/src/test/java/com/woorea/openstack/nova/model/NetworkTest.java b/nova-model/src/test/java/com/woorea/openstack/nova/model/NetworkTest.java
new file mode 100644
index 0000000..55689fa
--- /dev/null
+++ b/nova-model/src/test/java/com/woorea/openstack/nova/model/NetworkTest.java
@@ -0,0 +1,161 @@
+/*-
+ * ============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 static org.junit.Assert.*;
+
+public class NetworkTest {
+
+ private Network network = new Network();
+
+ @Test
+ public void getId() {
+ network.getId();
+ }
+
+ @Test
+ public void getVpnPublicAddress() {
+ network.getVpnPublicAddress();
+ }
+
+ @Test
+ public void getVpnPublicPort() {
+ network.getVpnPublicPort();
+ }
+
+ @Test
+ public void getDhcpStart() {
+ network.getDhcpStart();
+ }
+
+ @Test
+ public void getBridge() {
+ network.getBridge();
+ }
+
+ @Test
+ public void getBridgeInterface() {
+ network.getBridgeInterface();
+ }
+
+ @Test
+ public void getUpdatedAt() {
+ network.getUpdatedAt();
+ }
+
+ @Test
+ public void getDeleted() {
+ network.getDeleted();
+ }
+
+ @Test
+ public void getVlan() {
+ network.getVlan();
+ }
+
+ @Test
+ public void getBroadcast() {
+ network.getBroadcast();
+ }
+
+ @Test
+ public void getNetmask() {
+ network.getNetmask();
+ }
+
+ @Test
+ public void getInjected() {
+ network.getInjected();
+ }
+
+ @Test
+ public void getHost() {
+ network.getHost();
+ }
+
+ @Test
+ public void getMultiHost() {
+ network.getMultiHost();
+ }
+
+ @Test
+ public void getCreatedAt() {
+ network.getCreatedAt();
+ }
+
+ @Test
+ public void getDeletedAt() {
+ network.getDeletedAt();
+ }
+
+ @Test
+ public void getCidr() {
+ network.getCidr();
+ }
+
+ @Test
+ public void getCidrV6() {
+ network.getCidrV6();
+ }
+
+ @Test
+ public void getGateway() {
+ network.getGateway();
+ }
+
+ @Test
+ public void getGatewayV6() {
+ network.getGatewayV6();
+ }
+
+ @Test
+ public void getNetmaskV6() {
+ network.getNetmaskV6();
+ }
+
+ @Test
+ public void getProjectId() {
+ network.getProjectId();
+ }
+
+ @Test
+ public void getRxtxBase() {
+ network.getRxtxBase();
+ }
+
+ @Test
+ public void getDns1() {
+ network.getDns1();
+ }
+
+ @Test
+ public void getDns2() {
+ network.getDns2();
+ }
+
+ @Test
+ public void getLabel() {
+ network.getLabel();
+ }
+
+ @Test
+ public void getPriority() {
+ network.getPriority();
+ }
+} \ No newline at end of file
diff --git a/nova-model/src/test/java/com/woorea/openstack/nova/model/PersonalityFileTest.java b/nova-model/src/test/java/com/woorea/openstack/nova/model/PersonalityFileTest.java
new file mode 100644
index 0000000..91059b8
--- /dev/null
+++ b/nova-model/src/test/java/com/woorea/openstack/nova/model/PersonalityFileTest.java
@@ -0,0 +1,46 @@
+/*-
+ * ============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 static org.junit.Assert.*;
+
+public class PersonalityFileTest {
+
+ private PersonalityFile file = new PersonalityFile();
+
+ @Test
+ public void getPath() {
+ file.getPath();
+ }
+
+ @Test
+ public void setPath() {
+ file.setPath("123");
+ }
+
+ @Test
+ public void getContents() {
+ file.getContents();
+ }
+
+ @Test
+ public void setContents() {
+ file.setContents("123");
+ }
+} \ No newline at end of file
diff --git a/nova-model/src/test/java/com/woorea/openstack/nova/model/QuotaSetTest.java b/nova-model/src/test/java/com/woorea/openstack/nova/model/QuotaSetTest.java
new file mode 100644
index 0000000..bbf7fd7
--- /dev/null
+++ b/nova-model/src/test/java/com/woorea/openstack/nova/model/QuotaSetTest.java
@@ -0,0 +1,166 @@
+/*-
+ * ============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 static org.junit.Assert.*;
+
+public class QuotaSetTest {
+
+ private QuotaSet set = new QuotaSet();
+
+ @Test
+ public void getId() {
+ set.getId();
+ }
+
+ @Test
+ public void setId() {
+ set.setId("123");
+ }
+
+ @Test
+ public void getMetadataItems() {
+ set.getMetadataItems();
+ }
+
+ @Test
+ public void setMetadataItems() {
+ set.setMetadataItems(123);
+ }
+
+ @Test
+ public void getInjectedFileContentBytes() {
+ set.getInjectedFileContentBytes();
+ }
+
+ @Test
+ public void setInjectedFileContentBytes() {
+ set.setInjectedFileContentBytes(123);
+ }
+
+ @Test
+ public void getInjectedFiles() {
+ set.getInjectedFiles();
+ }
+
+ @Test
+ public void setInjectedFiles() {
+ set.setInjectedFiles(123);
+ }
+
+ @Test
+ public void getGigabytes() {
+ set.getGigabytes();
+ }
+
+ @Test
+ public void setGigabytes() {
+ set.setGigabytes(123);
+ }
+
+ @Test
+ public void getRam() {
+ set.getRam();
+ }
+
+ @Test
+ public void setRam() {
+ set.setRam(123);
+ }
+
+ @Test
+ public void getFloatingIps() {
+ set.getFloatingIps();
+ }
+
+ @Test
+ public void setFloatingIps() {
+ set.setFloatingIps(123);
+ }
+
+ @Test
+ public void getInstances() {
+ set.getInstances();
+ }
+
+ @Test
+ public void setInstances() {
+ set.setInstances(123);
+ }
+
+ @Test
+ public void getVolumes() {
+ set.getVolumes();
+ }
+
+ @Test
+ public void setVolumes() {
+ set.setVolumes(123);
+ }
+
+ @Test
+ public void getCores() {
+ set.getCores();
+ }
+
+ @Test
+ public void setCores() {
+ set.setCores(123);
+ }
+
+ @Test
+ public void getSecurityGroups() {
+ set.getSecurityGroups();
+ }
+
+ @Test
+ public void setSecurityGroups() {
+ set.setSecurityGroups(123);
+ }
+
+ @Test
+ public void getSecurityGroupRules() {
+ set.getSecurityGroupRules();
+ }
+
+ @Test
+ public void setSecurityGroupRules() {
+ set.setSecurityGroupRules(123);
+ }
+
+ @Test
+ public void getKeyPairs() {
+ set.getKeyPairs();
+ }
+
+ @Test
+ public void setKeyPairs() {
+ set.setKeyPairs(123);
+ }
+
+ @Test
+ public void getInjectedFilePathBytes() {
+ set.getInjectedFilePathBytes();
+ }
+
+ @Test
+ public void setInjectedFilePathBytes() {
+ set.setInjectedFilePathBytes(123);
+ }
+} \ No newline at end of file