diff options
author | Sonsino, Ofir (os0695) <os0695@intl.att.com> | 2018-03-14 12:04:50 +0200 |
---|---|---|
committer | Sonsino, Ofir (os0695) <os0695@intl.att.com> | 2018-03-14 12:04:50 +0200 |
commit | c9d63f49af5455f503ca63395121b7cd4d8c8c88 (patch) | |
tree | 827ed548a95e05b99f35c494d6c6c654840ee90b /vid-app-common/src/test/java/org/onap/vid/aai/util/AAIRestInterfaceTest.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/aai/util/AAIRestInterfaceTest.java')
-rw-r--r-- | vid-app-common/src/test/java/org/onap/vid/aai/util/AAIRestInterfaceTest.java | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/vid-app-common/src/test/java/org/onap/vid/aai/util/AAIRestInterfaceTest.java b/vid-app-common/src/test/java/org/onap/vid/aai/util/AAIRestInterfaceTest.java new file mode 100644 index 00000000..35ebb66e --- /dev/null +++ b/vid-app-common/src/test/java/org/onap/vid/aai/util/AAIRestInterfaceTest.java @@ -0,0 +1,76 @@ +package org.onap.vid.aai.util; + +import org.junit.Test; + +public class AAIRestInterfaceTest { + + private AAIRestInterface createTestSubject() { + return new AAIRestInterface(""); + } + + @Test + public void testEncodeURL() throws Exception { + AAIRestInterface testSubject; + String nodeKey = ""; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.encodeURL(nodeKey); + } + + @Test + public void testSetRestSrvrBaseURL() throws Exception { + AAIRestInterface testSubject; + String baseURL = ""; + + // test 1 + testSubject = createTestSubject(); + baseURL = null; + testSubject.SetRestSrvrBaseURL(baseURL); + + // test 2 + testSubject = createTestSubject(); + baseURL = ""; + testSubject.SetRestSrvrBaseURL(baseURL); + } + + @Test + public void testGetRestSrvrBaseURL() throws Exception { + AAIRestInterface testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getRestSrvrBaseURL(); + } + + + @Test + public void testRestPut() throws Exception { + AAIRestInterface testSubject; + String fromAppId = ""; + String transId = ""; + String path = ""; + String payload = ""; + boolean xml = false; + + // default test + testSubject = createTestSubject(); + testSubject.RestPut(fromAppId, transId, path, payload, xml); + } + + @Test + public void testRestPost() throws Exception { + AAIRestInterface testSubject; + String fromAppId = ""; + String transId = ""; + String path = ""; + String payload = ""; + boolean xml = false; + + // default test + testSubject = createTestSubject(); + testSubject.RestPost(fromAppId, transId, path, payload, xml); + } +}
\ No newline at end of file |