diff options
author | 2018-03-14 12:04:50 +0200 | |
---|---|---|
committer | 2018-03-14 12:04:50 +0200 | |
commit | c9d63f49af5455f503ca63395121b7cd4d8c8c88 (patch) | |
tree | 827ed548a95e05b99f35c494d6c6c654840ee90b /vid-app-common/src/test/java/org/onap/vid/mso/rest/ResponseTest.java | |
parent | d5ec7bf55217508e2b5cebe640d586598379f97a (diff) |
Unit tests
Change-Id: I9c63fd607757bbec095c26341af593d9afd73886
Issue-ID: VID-197
Signed-off-by: Sonsino, Ofir (os0695) <os0695@intl.att.com>
Diffstat (limited to 'vid-app-common/src/test/java/org/onap/vid/mso/rest/ResponseTest.java')
-rw-r--r-- | vid-app-common/src/test/java/org/onap/vid/mso/rest/ResponseTest.java | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/vid-app-common/src/test/java/org/onap/vid/mso/rest/ResponseTest.java b/vid-app-common/src/test/java/org/onap/vid/mso/rest/ResponseTest.java new file mode 100644 index 00000000..56ec6a49 --- /dev/null +++ b/vid-app-common/src/test/java/org/onap/vid/mso/rest/ResponseTest.java @@ -0,0 +1,50 @@ +package org.onap.vid.mso.rest; + +import org.junit.Test; + +public class ResponseTest { + + private Response createTestSubject() { + return new Response(); + } + + @Test + public void testGetStatus() throws Exception { + Response testSubject; + int result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getStatus(); + } + + @Test + public void testSetStatus() throws Exception { + Response testSubject; + int status = 0; + + // default test + testSubject = createTestSubject(); + testSubject.setStatus(status); + } + + @Test + public void testGetEntity() throws Exception { + Response testSubject; + RequestList result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getEntity(); + } + + @Test + public void testSetEntity() throws Exception { + Response testSubject; + RequestList entity = null; + + // default test + testSubject = createTestSubject(); + testSubject.setEntity(entity); + } +}
\ No newline at end of file |