aboutsummaryrefslogtreecommitdiffstats
path: root/vid-app-common/src/test/java/org/onap/vid/aai/util
diff options
context:
space:
mode:
Diffstat (limited to 'vid-app-common/src/test/java/org/onap/vid/aai/util')
-rw-r--r--vid-app-common/src/test/java/org/onap/vid/aai/util/AAIRestInterfaceTest.java76
-rw-r--r--vid-app-common/src/test/java/org/onap/vid/aai/util/CustomJacksonJaxBJsonProviderTest.java19
-rw-r--r--vid-app-common/src/test/java/org/onap/vid/aai/util/HttpsAuthClientTest.java18
3 files changed, 113 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 000000000..35ebb66e7
--- /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
diff --git a/vid-app-common/src/test/java/org/onap/vid/aai/util/CustomJacksonJaxBJsonProviderTest.java b/vid-app-common/src/test/java/org/onap/vid/aai/util/CustomJacksonJaxBJsonProviderTest.java
new file mode 100644
index 000000000..dcd962f1b
--- /dev/null
+++ b/vid-app-common/src/test/java/org/onap/vid/aai/util/CustomJacksonJaxBJsonProviderTest.java
@@ -0,0 +1,19 @@
+package org.onap.vid.aai.util;
+
+import org.junit.Test;
+
+public class CustomJacksonJaxBJsonProviderTest {
+
+ private CustomJacksonJaxBJsonProvider createTestSubject() {
+ return new CustomJacksonJaxBJsonProvider();
+ }
+
+ @Test
+ public void testGetMapper() throws Exception {
+ CustomJacksonJaxBJsonProvider testSubject;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.getMapper();
+ }
+} \ No newline at end of file
diff --git a/vid-app-common/src/test/java/org/onap/vid/aai/util/HttpsAuthClientTest.java b/vid-app-common/src/test/java/org/onap/vid/aai/util/HttpsAuthClientTest.java
new file mode 100644
index 000000000..88d53c03f
--- /dev/null
+++ b/vid-app-common/src/test/java/org/onap/vid/aai/util/HttpsAuthClientTest.java
@@ -0,0 +1,18 @@
+package org.onap.vid.aai.util;
+
+import org.junit.Test;
+
+public class HttpsAuthClientTest {
+
+ private HttpsAuthClient createTestSubject() {
+ return new HttpsAuthClient();
+ }
+
+ @Test
+ public void testGetClient() throws Exception {
+ String certFilePath = "";
+
+ // default test
+ HttpsAuthClient.getClient(certFilePath);
+ }
+} \ No newline at end of file