summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--keystone-model/pom.xml9
-rw-r--r--keystone-model/src/test/java/com/woorea/openstack/keystone/model/AccessTest.java45
-rw-r--r--keystone-model/src/test/java/com/woorea/openstack/keystone/model/EndpointTest.java85
-rw-r--r--keystone-model/src/test/java/com/woorea/openstack/keystone/model/EndpointsTest.java35
-rw-r--r--keystone-model/src/test/java/com/woorea/openstack/keystone/model/ErrorTest.java40
-rw-r--r--keystone-model/src/test/java/com/woorea/openstack/keystone/model/LinkTest.java40
-rw-r--r--keystone-model/src/test/java/com/woorea/openstack/keystone/model/MetadataTest.java35
-rw-r--r--keystone-model/src/test/java/com/woorea/openstack/keystone/model/RoleTest.java60
-rw-r--r--keystone-model/src/test/java/com/woorea/openstack/keystone/model/RolesTest.java35
-rw-r--r--keystone-model/src/test/java/com/woorea/openstack/keystone/model/ServiceTest.java60
-rw-r--r--keystone-model/src/test/java/com/woorea/openstack/keystone/model/ServicesTest.java35
-rw-r--r--keystone-model/src/test/java/com/woorea/openstack/keystone/model/TenantTest.java64
-rw-r--r--keystone-model/src/test/java/com/woorea/openstack/keystone/model/TenantsTest.java40
-rw-r--r--keystone-model/src/test/java/com/woorea/openstack/keystone/model/TokenTest.java45
-rw-r--r--keystone-model/src/test/java/com/woorea/openstack/keystone/model/UserTest.java95
-rw-r--r--keystone-model/src/test/java/com/woorea/openstack/keystone/model/UsersTest.java35
16 files changed, 758 insertions, 0 deletions
diff --git a/keystone-model/pom.xml b/keystone-model/pom.xml
index 66448a7..85e4cca 100644
--- a/keystone-model/pom.xml
+++ b/keystone-model/pom.xml
@@ -10,4 +10,13 @@
<name>OpenStack Keystone Model</name>
<description>OpenStack Keystone Model</description>
+ <dependencies>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>4.12</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+
</project> \ No newline at end of file
diff --git a/keystone-model/src/test/java/com/woorea/openstack/keystone/model/AccessTest.java b/keystone-model/src/test/java/com/woorea/openstack/keystone/model/AccessTest.java
new file mode 100644
index 0000000..08ed18a
--- /dev/null
+++ b/keystone-model/src/test/java/com/woorea/openstack/keystone/model/AccessTest.java
@@ -0,0 +1,45 @@
+/*-
+ * ============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.keystone.model;
+
+import org.junit.Test;
+
+public class AccessTest {
+
+ Access access = new Access();
+
+ @Test
+ public void getTokenTest() throws Exception {
+ access.getToken();
+ }
+
+ @Test
+ public void getServiceCatalogTest() throws Exception {
+ access.getServiceCatalog();
+ }
+
+ @Test
+ public void getUserTest() throws Exception {
+ access.getUser();
+ }
+
+ @Test
+ public void getMetadataTest() throws Exception {
+ access.getMetadata();
+ }
+
+} \ No newline at end of file
diff --git a/keystone-model/src/test/java/com/woorea/openstack/keystone/model/EndpointTest.java b/keystone-model/src/test/java/com/woorea/openstack/keystone/model/EndpointTest.java
new file mode 100644
index 0000000..e8e0c7a
--- /dev/null
+++ b/keystone-model/src/test/java/com/woorea/openstack/keystone/model/EndpointTest.java
@@ -0,0 +1,85 @@
+/*-
+ * ============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.keystone.model;
+
+import org.junit.Test;
+
+public class EndpointTest {
+
+ Endpoint endpoint = new Endpoint();
+
+ @Test
+ public void getId() throws Exception {
+ endpoint.getId();
+ }
+
+ @Test
+ public void setId() throws Exception {
+ endpoint.setId("test");
+ }
+
+ @Test
+ public void getServiceId() throws Exception {
+ endpoint.getServiceId();
+ }
+
+ @Test
+ public void setServiceId() throws Exception {
+ endpoint.setServiceId("test");
+ }
+
+ @Test
+ public void getRegion() throws Exception {
+ endpoint.getRegion();
+ }
+
+ @Test
+ public void setRegion() throws Exception {
+ endpoint.setRegion("region");
+ }
+
+ @Test
+ public void getPublicURL() throws Exception {
+ endpoint.getPublicURL();
+ }
+
+ @Test
+ public void setPublicURL() throws Exception {
+ endpoint.setPublicURL("url");
+ }
+
+ @Test
+ public void getInternalURL() throws Exception {
+ endpoint.getInternalURL();
+ }
+
+ @Test
+ public void setInternalURL() throws Exception {
+ endpoint.setInternalURL("test");
+ }
+
+ @Test
+ public void getAdminURL() throws Exception {
+ endpoint.getAdminURL();
+ }
+
+ @Test
+ public void setAdminURL() throws Exception {
+ endpoint.setAdminURL("admin url");
+ }
+
+} \ No newline at end of file
diff --git a/keystone-model/src/test/java/com/woorea/openstack/keystone/model/EndpointsTest.java b/keystone-model/src/test/java/com/woorea/openstack/keystone/model/EndpointsTest.java
new file mode 100644
index 0000000..8969720
--- /dev/null
+++ b/keystone-model/src/test/java/com/woorea/openstack/keystone/model/EndpointsTest.java
@@ -0,0 +1,35 @@
+/*-
+ * ============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.keystone.model;
+
+import org.junit.Test;
+
+public class EndpointsTest {
+
+ Endpoints endpoints = new Endpoints();
+
+ @Test
+ public void getList() throws Exception {
+ endpoints.getList();
+ }
+
+ @Test(expected = NullPointerException.class)
+ public void iterator() throws Exception {
+ endpoints.iterator();
+ }
+
+} \ No newline at end of file
diff --git a/keystone-model/src/test/java/com/woorea/openstack/keystone/model/ErrorTest.java b/keystone-model/src/test/java/com/woorea/openstack/keystone/model/ErrorTest.java
new file mode 100644
index 0000000..d7a4ac2
--- /dev/null
+++ b/keystone-model/src/test/java/com/woorea/openstack/keystone/model/ErrorTest.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.keystone.model;
+
+import org.junit.Test;
+
+public class ErrorTest {
+
+ Error error = new Error();
+
+ @Test
+ public void getCode() throws Exception {
+ error.getCode();
+ }
+
+ @Test
+ public void getTitle() throws Exception {
+ error.getTitle();
+ }
+
+ @Test
+ public void getMessage() throws Exception {
+ error.getMessage();
+ }
+
+} \ No newline at end of file
diff --git a/keystone-model/src/test/java/com/woorea/openstack/keystone/model/LinkTest.java b/keystone-model/src/test/java/com/woorea/openstack/keystone/model/LinkTest.java
new file mode 100644
index 0000000..de7f69d
--- /dev/null
+++ b/keystone-model/src/test/java/com/woorea/openstack/keystone/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.keystone.model;
+
+import org.junit.Test;
+
+public class LinkTest {
+
+ Link link = new Link();
+
+ @Test
+ public void getRel() throws Exception {
+ link.getRel();
+ }
+
+ @Test
+ public void getHref() throws Exception {
+ link.getHref();
+ }
+
+ @Test
+ public void getType() throws Exception {
+ link.getType();
+ }
+
+} \ No newline at end of file
diff --git a/keystone-model/src/test/java/com/woorea/openstack/keystone/model/MetadataTest.java b/keystone-model/src/test/java/com/woorea/openstack/keystone/model/MetadataTest.java
new file mode 100644
index 0000000..5cd94c2
--- /dev/null
+++ b/keystone-model/src/test/java/com/woorea/openstack/keystone/model/MetadataTest.java
@@ -0,0 +1,35 @@
+/*-
+ * ============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.keystone.model;
+
+import org.junit.Test;
+
+public class MetadataTest {
+
+ Metadata metadata = new Metadata();
+
+ @Test
+ public void getMetadata() throws Exception {
+ metadata.getMetadata();
+ }
+
+ @Test
+ public void setMetadata() throws Exception {
+ metadata.setMetadata(null);
+ }
+
+} \ No newline at end of file
diff --git a/keystone-model/src/test/java/com/woorea/openstack/keystone/model/RoleTest.java b/keystone-model/src/test/java/com/woorea/openstack/keystone/model/RoleTest.java
new file mode 100644
index 0000000..3435d63
--- /dev/null
+++ b/keystone-model/src/test/java/com/woorea/openstack/keystone/model/RoleTest.java
@@ -0,0 +1,60 @@
+/*-
+ * ============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.keystone.model;
+
+import org.junit.Test;
+
+public class RoleTest {
+
+ Role role = new Role();
+
+ @Test
+ public void getId() throws Exception {
+ role.getId();
+ }
+
+ @Test
+ public void getName() throws Exception {
+ role.getName();
+ }
+
+ @Test
+ public void setName() throws Exception {
+ role.setName("name");
+ }
+
+ @Test
+ public void getDescription() throws Exception {
+ role.getDescription();
+ }
+
+ @Test
+ public void setDescription() throws Exception {
+ role.setDescription("desc");
+ }
+
+ @Test
+ public void getEnabled() throws Exception {
+ role.getEnabled();
+ }
+
+ @Test
+ public void setEnabled() throws Exception {
+ role.setEnabled("test");
+ }
+
+} \ No newline at end of file
diff --git a/keystone-model/src/test/java/com/woorea/openstack/keystone/model/RolesTest.java b/keystone-model/src/test/java/com/woorea/openstack/keystone/model/RolesTest.java
new file mode 100644
index 0000000..d47c93b
--- /dev/null
+++ b/keystone-model/src/test/java/com/woorea/openstack/keystone/model/RolesTest.java
@@ -0,0 +1,35 @@
+/*-
+ * ============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.keystone.model;
+
+import org.junit.Test;
+
+public class RolesTest {
+
+ Roles roles = new Roles();
+
+ @Test
+ public void getList() throws Exception {
+ roles.getList();
+ }
+
+ @Test(expected = NullPointerException.class)
+ public void iterator() throws Exception {
+ roles.iterator();
+ }
+
+} \ No newline at end of file
diff --git a/keystone-model/src/test/java/com/woorea/openstack/keystone/model/ServiceTest.java b/keystone-model/src/test/java/com/woorea/openstack/keystone/model/ServiceTest.java
new file mode 100644
index 0000000..8034b37
--- /dev/null
+++ b/keystone-model/src/test/java/com/woorea/openstack/keystone/model/ServiceTest.java
@@ -0,0 +1,60 @@
+/*-
+ * ============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.keystone.model;
+
+import org.junit.Test;
+
+public class ServiceTest {
+
+ Service service = new Service();
+
+ @Test
+ public void getId() throws Exception {
+ service.getId();
+ }
+
+ @Test
+ public void getType() throws Exception {
+ service.getType();
+ }
+
+ @Test
+ public void setType() throws Exception {
+ service.setType("type");
+ }
+
+ @Test
+ public void getName() throws Exception {
+ service.getName();
+ }
+
+ @Test
+ public void setName() throws Exception {
+ service.setName("name");
+ }
+
+ @Test
+ public void getDescription() throws Exception {
+ service.getDescription();
+ }
+
+ @Test
+ public void setDescription() throws Exception {
+ service.setDescription("desc");
+ }
+
+} \ No newline at end of file
diff --git a/keystone-model/src/test/java/com/woorea/openstack/keystone/model/ServicesTest.java b/keystone-model/src/test/java/com/woorea/openstack/keystone/model/ServicesTest.java
new file mode 100644
index 0000000..75014b7
--- /dev/null
+++ b/keystone-model/src/test/java/com/woorea/openstack/keystone/model/ServicesTest.java
@@ -0,0 +1,35 @@
+/*-
+ * ============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.keystone.model;
+
+import org.junit.Test;
+
+public class ServicesTest {
+
+ Services services = new Services();
+
+ @Test
+ public void getList() throws Exception {
+ services.getList();
+ }
+
+ @Test(expected = NullPointerException.class)
+ public void iterator() throws Exception {
+ services.iterator();
+ }
+
+} \ No newline at end of file
diff --git a/keystone-model/src/test/java/com/woorea/openstack/keystone/model/TenantTest.java b/keystone-model/src/test/java/com/woorea/openstack/keystone/model/TenantTest.java
new file mode 100644
index 0000000..da7a82f
--- /dev/null
+++ b/keystone-model/src/test/java/com/woorea/openstack/keystone/model/TenantTest.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.keystone.model;
+
+import org.junit.Test;
+
+public class TenantTest {
+
+ Tenant tenant = new Tenant();
+
+ @Test
+ public void getId() throws Exception {
+ tenant.getId();
+ }
+
+ @Test
+ public void setId() throws Exception {
+ tenant.setId("tenantid");
+ }
+
+ @Test
+ public void getName() throws Exception {
+ tenant.getName();
+ }
+
+ @Test
+ public void setName() throws Exception {
+ tenant.setName("test");
+ }
+
+ @Test
+ public void getDescription() throws Exception {
+ tenant.getDescription();
+ }
+
+ @Test
+ public void setDescription() throws Exception {
+ tenant.setDescription("desc");
+ }
+
+ @Test
+ public void getEnabled() throws Exception {
+ tenant.getEnabled();
+ }
+
+ @Test
+ public void setEnabled() throws Exception {
+ tenant.setEnabled(true);
+ }
+} \ No newline at end of file
diff --git a/keystone-model/src/test/java/com/woorea/openstack/keystone/model/TenantsTest.java b/keystone-model/src/test/java/com/woorea/openstack/keystone/model/TenantsTest.java
new file mode 100644
index 0000000..0b1942f
--- /dev/null
+++ b/keystone-model/src/test/java/com/woorea/openstack/keystone/model/TenantsTest.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.keystone.model;
+
+import org.junit.Test;
+
+public class TenantsTest {
+
+ Tenants tenants= new Tenants();
+
+ @Test
+ public void getList() throws Exception {
+ tenants.getList();
+ }
+
+ @Test
+ public void getLinks() throws Exception {
+ tenants.getLinks();
+ }
+
+ @Test(expected = NullPointerException.class)
+ public void iterator() throws Exception {
+ tenants.iterator();
+ }
+
+} \ No newline at end of file
diff --git a/keystone-model/src/test/java/com/woorea/openstack/keystone/model/TokenTest.java b/keystone-model/src/test/java/com/woorea/openstack/keystone/model/TokenTest.java
new file mode 100644
index 0000000..603296d
--- /dev/null
+++ b/keystone-model/src/test/java/com/woorea/openstack/keystone/model/TokenTest.java
@@ -0,0 +1,45 @@
+/*-
+ * ============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.keystone.model;
+
+import org.junit.Test;
+
+public class TokenTest {
+
+ Token token = new Token();
+
+ @Test
+ public void getId() throws Exception {
+ token.getId();
+ }
+
+ @Test
+ public void getIssued_at() throws Exception {
+ token.getIssued_at();
+ }
+
+ @Test
+ public void getExpires() throws Exception {
+ token.getExpires();
+ }
+
+ @Test
+ public void getTenant() throws Exception {
+ token.getTenant();
+ }
+
+} \ No newline at end of file
diff --git a/keystone-model/src/test/java/com/woorea/openstack/keystone/model/UserTest.java b/keystone-model/src/test/java/com/woorea/openstack/keystone/model/UserTest.java
new file mode 100644
index 0000000..675383b
--- /dev/null
+++ b/keystone-model/src/test/java/com/woorea/openstack/keystone/model/UserTest.java
@@ -0,0 +1,95 @@
+/*-
+ * ============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.keystone.model;
+
+import org.junit.Test;
+
+public class UserTest {
+
+ User user = new User();
+
+ @Test
+ public void getId() throws Exception {
+ user.getId();
+ }
+
+ @Test
+ public void setId() throws Exception {
+ user.setId("test");
+ }
+
+ @Test
+ public void getUsername() throws Exception {
+ user.getUsername();
+ }
+
+ @Test
+ public void setUsername() throws Exception {
+ user.setUsername("test");
+ }
+
+ @Test
+ public void getPassword() throws Exception {
+ user.getPassword();
+ }
+
+ @Test
+ public void setPassword() throws Exception {
+ user.setPassword("test");
+ }
+
+ @Test
+ public void getTenantId() throws Exception {
+ user.getTenantId();
+ }
+
+ @Test
+ public void setTenantId() throws Exception {
+ user.setTenantId("test");
+ }
+
+ @Test
+ public void getName() throws Exception {
+ user.getName();
+ }
+
+ @Test
+ public void setName() throws Exception {
+ user.setName("test");
+ }
+
+ @Test
+ public void getEmail() throws Exception {
+ user.getEmail();
+ }
+
+ @Test
+ public void setEmail() throws Exception {
+ user.setEmail("test");
+ }
+
+ @Test
+ public void getEnabled() throws Exception {
+ user.getEnabled();
+ }
+
+ @Test
+ public void setEnabled() throws Exception {
+ user.setEnabled(true);
+ }
+
+} \ No newline at end of file
diff --git a/keystone-model/src/test/java/com/woorea/openstack/keystone/model/UsersTest.java b/keystone-model/src/test/java/com/woorea/openstack/keystone/model/UsersTest.java
new file mode 100644
index 0000000..71d47c5
--- /dev/null
+++ b/keystone-model/src/test/java/com/woorea/openstack/keystone/model/UsersTest.java
@@ -0,0 +1,35 @@
+/*-
+ * ============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.keystone.model;
+
+import org.junit.Test;
+
+public class UsersTest {
+
+ Users users = new Users();
+
+ @Test
+ public void getList() throws Exception {
+ users.getList();
+ }
+
+ @Test(expected = NullPointerException.class)
+ public void iterator() throws Exception {
+ users.iterator();
+ }
+
+} \ No newline at end of file