From c9d63f49af5455f503ca63395121b7cd4d8c8c88 Mon Sep 17 00:00:00 2001 From: "Sonsino, Ofir (os0695)" Date: Wed, 14 Mar 2018 12:04:50 +0200 Subject: Unit tests Change-Id: I9c63fd607757bbec095c26341af593d9afd73886 Issue-ID: VID-197 Signed-off-by: Sonsino, Ofir (os0695) --- .../test/java/org/onap/vid/aai/AaiClientTest.java | 40 ++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 vid-app-common/src/test/java/org/onap/vid/aai/AaiClientTest.java (limited to 'vid-app-common/src/test/java/org/onap/vid/aai/AaiClientTest.java') 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 00000000..8010447c --- /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 -- cgit 1.2.3-korg