summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsubhash kumar singh <subhash.kumar.singh@huawei.com>2018-02-28 11:05:12 +0000
committersubhash kumar singh <subhash.kumar.singh@huawei.com>2018-02-28 11:13:57 +0000
commitc1cb490eba330a7c296a84b62df1a9dc4ce66557 (patch)
tree61a6ebcb220be224e3556bbe6e57ae6bcb340470
parentadc60db9f94296ddbb67bd0fda14ab7d15202de9 (diff)
Improve code coverage for libs
Improve code coverate for libs. Change-Id: Ia38db44cf1e0492be70d8baf7a812d5c8b88136c Issue-ID: SO-369 Signed-off-by: subhash kumar singh <subhash.kumar.singh@huawei.com>
-rw-r--r--glance-model/src/test/java/com/woorea/openstack/glance/model/ImageMemberTest.java44
1 files changed, 44 insertions, 0 deletions
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
index 0000000..27d9931
--- /dev/null
+++ b/glance-model/src/test/java/com/woorea/openstack/glance/model/ImageMemberTest.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.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