aboutsummaryrefslogtreecommitdiffstats
path: root/vid-app-common/src/test/java/org/onap/vid/aai/AaiClientTest.java
diff options
context:
space:
mode:
authorSonsino, Ofir (os0695) <os0695@intl.att.com>2018-03-14 12:04:50 +0200
committerSonsino, Ofir (os0695) <os0695@intl.att.com>2018-03-14 12:04:50 +0200
commitc9d63f49af5455f503ca63395121b7cd4d8c8c88 (patch)
tree827ed548a95e05b99f35c494d6c6c654840ee90b /vid-app-common/src/test/java/org/onap/vid/aai/AaiClientTest.java
parentd5ec7bf55217508e2b5cebe640d586598379f97a (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/AaiClientTest.java')
-rw-r--r--vid-app-common/src/test/java/org/onap/vid/aai/AaiClientTest.java40
1 files changed, 40 insertions, 0 deletions
diff --git a/vid-app-common/src/test/java/org/onap/vid/aai/AaiClientTest.java b/vid-app-common/src/test/java/org/onap/vid/aai/AaiClientTest.java
new file mode 100644
index 000000000..8010447ce
--- /dev/null
+++ b/vid-app-common/src/test/java/org/onap/vid/aai/AaiClientTest.java
@@ -0,0 +1,40 @@
+package org.onap.vid.aai;
+
+import static org.junit.Assert.*;
+import java.util.*;
+
+import org.json.simple.JSONObject;
+import org.junit.Assert;
+import org.junit.Test;
+import org.onap.vid.aai.model.AaiGetPnfs.Pnf;
+import org.onap.vid.model.SubscriberList;
+
+public class AaiClientTest {
+
+ private AaiClient createTestSubject() {
+ return new AaiClient();
+ }
+
+
+ @Test
+ public void testDoAaiGet() throws Exception {
+ AaiClient testSubject;
+ String certiPath = "";
+ String uri = "";
+ boolean xml = false;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.doAaiGet(certiPath, uri, xml);
+ }
+
+ @Test
+ public void testParseServiceSubscriptionObjectForTenants() throws Exception {
+ JSONObject jsonObject = null;
+ String result;
+
+ // default test
+ result = AaiClient.parseServiceSubscriptionObjectForTenants(jsonObject);
+ }
+
+} \ No newline at end of file