aboutsummaryrefslogtreecommitdiffstats
path: root/vid-app-common/src/test/java/org/openecomp/vid/mso/rest/AsyncRequestStatusTest.java
diff options
context:
space:
mode:
authorOfir Sonsino <os0695@att.com>2017-10-09 11:08:05 +0300
committerOfir Sonsino <os0695@att.com>2017-10-09 11:08:05 +0300
commit78028f3b588241200e31b71b8190e9926af626e9 (patch)
tree4cc4969710b9f815f382f5e387f2da1bf404703a /vid-app-common/src/test/java/org/openecomp/vid/mso/rest/AsyncRequestStatusTest.java
parent3274b39fef63c43c6eeb202e98b71b01e0f714ff (diff)
Improve SONAR coverage
Change-Id: Ib36c2e6df9fe100a301b89769078c7a06d3a9ae5 Issue-ID: VID-72 Signed-off-by: Ofir Sonsino <os0695@att.com>
Diffstat (limited to 'vid-app-common/src/test/java/org/openecomp/vid/mso/rest/AsyncRequestStatusTest.java')
-rw-r--r--vid-app-common/src/test/java/org/openecomp/vid/mso/rest/AsyncRequestStatusTest.java91
1 files changed, 91 insertions, 0 deletions
diff --git a/vid-app-common/src/test/java/org/openecomp/vid/mso/rest/AsyncRequestStatusTest.java b/vid-app-common/src/test/java/org/openecomp/vid/mso/rest/AsyncRequestStatusTest.java
new file mode 100644
index 000000000..663d1f53c
--- /dev/null
+++ b/vid-app-common/src/test/java/org/openecomp/vid/mso/rest/AsyncRequestStatusTest.java
@@ -0,0 +1,91 @@
+package org.openecomp.vid.mso.rest;
+
+import org.junit.Test;
+import org.openecomp.vid.domain.mso.InstanceIds;
+import org.openecomp.vid.domain.mso.RequestStatus;
+
+
+public class AsyncRequestStatusTest {
+
+ private AsyncRequestStatus createTestSubject() {
+ return new AsyncRequestStatus();
+ }
+
+
+ @Test
+ public void testGetInstanceIds() throws Exception {
+ AsyncRequestStatus testSubject;
+ InstanceIds result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getInstanceIds();
+ }
+
+
+ @Test
+ public void testSetInstanceIds() throws Exception {
+ AsyncRequestStatus testSubject;
+ InstanceIds instanceIds = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setInstanceIds(instanceIds);
+ }
+
+
+ @Test
+ public void testGetRequestStatus() throws Exception {
+ AsyncRequestStatus testSubject;
+ RequestStatus result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getRequestStatus();
+ }
+
+
+ @Test
+ public void testSetRequestStatus() throws Exception {
+ AsyncRequestStatus testSubject;
+ RequestStatus requestStatus = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setRequestStatus(requestStatus);
+ }
+
+
+ @Test
+ public void testToString() throws Exception {
+ AsyncRequestStatus testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.toString();
+ }
+
+
+ @Test
+ public void testHashCode() throws Exception {
+ AsyncRequestStatus testSubject;
+ int result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.hashCode();
+ }
+
+
+ @Test
+ public void testEquals() throws Exception {
+ AsyncRequestStatus testSubject;
+ Object other = null;
+ boolean result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.equals(other);
+ }
+} \ No newline at end of file