summaryrefslogtreecommitdiffstats
path: root/keystone-client/src/test/java/com/woorea/openstack/keystone/v3/api/RolesResourceTest.java
diff options
context:
space:
mode:
authorsubhash kumar singh <subhash.kumar.singh@huawei.com>2018-02-11 10:22:27 +0000
committersubhash kumar singh <subhash.kumar.singh@huawei.com>2018-02-11 10:22:27 +0000
commitdb87b7c2e0f751d4fba6a86d242d4c87e6101455 (patch)
treef0d0c01a9dfcd058b93be8b380730565c567bf90 /keystone-client/src/test/java/com/woorea/openstack/keystone/v3/api/RolesResourceTest.java
parent08ef8020d394f84cfb5ae03890c11e0930061f83 (diff)
Improve code coverage for libs
Import code coverage for libs. Change-Id: I757d6d8e29fc22fc6a2b11159eed546dd702a5cd Issue-ID: SO-369 Signed-off-by: subhash kumar singh <subhash.kumar.singh@huawei.com>
Diffstat (limited to 'keystone-client/src/test/java/com/woorea/openstack/keystone/v3/api/RolesResourceTest.java')
-rw-r--r--keystone-client/src/test/java/com/woorea/openstack/keystone/v3/api/RolesResourceTest.java29
1 files changed, 29 insertions, 0 deletions
diff --git a/keystone-client/src/test/java/com/woorea/openstack/keystone/v3/api/RolesResourceTest.java b/keystone-client/src/test/java/com/woorea/openstack/keystone/v3/api/RolesResourceTest.java
new file mode 100644
index 0000000..9d9236b
--- /dev/null
+++ b/keystone-client/src/test/java/com/woorea/openstack/keystone/v3/api/RolesResourceTest.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.keystone.v3.api;
+
+import org.junit.Test;
+
+public class RolesResourceTest {
+
+ RolesResource rolesResource = new RolesResource(null);
+
+ @Test(expected = NullPointerException.class)
+ public void usersTest() throws Exception {
+ rolesResource.users("domainid", "userid");
+ }
+
+} \ No newline at end of file