Improve code coverage for libs 07/33407/1
authorsubhash kumar singh <subhash.kumar.singh@huawei.com>
Wed, 28 Feb 2018 11:05:12 +0000 (11:05 +0000)
committersubhash kumar singh <subhash.kumar.singh@huawei.com>
Wed, 28 Feb 2018 11:13:57 +0000 (11:13 +0000)
Improve code coverate for libs.

Change-Id: Ia38db44cf1e0492be70d8baf7a812d5c8b88136c
Issue-ID: SO-369
Signed-off-by: subhash kumar singh <subhash.kumar.singh@huawei.com>
glance-model/src/test/java/com/woorea/openstack/glance/model/ImageMemberTest.java [new file with mode: 0644]

diff --git a/glance-model/src/test/java/com/woorea/openstack/glance/model/ImageMemberTest.java b/glance-model/src/test/java/com/woorea/openstack/glance/model/ImageMemberTest.java
new file mode 100644 (file)
index 0000000..27d9931
--- /dev/null
@@ -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.glance.model;
+
+import org.junit.Test;
+
+public class ImageMemberTest {
+
+    ImageMember imageMember = new ImageMember();
+
+    @Test
+    public void isCanShareTest() throws Exception {
+        imageMember.isCanShare();
+    }
+
+    @Test
+    public void setCanShareTest() throws Exception {
+        imageMember.setCanShare(true);
+    }
+
+    @Test
+    public void getMemberIdTest() throws Exception {
+        imageMember.getMemberId();
+    }
+
+    @Test
+    public void setMemberIdTest() throws Exception {
+        imageMember.setMemberId("id");
+    }
+
+}
\ No newline at end of file