aboutsummaryrefslogtreecommitdiffstats
path: root/appc-outbound
diff options
context:
space:
mode:
authorRupinder <rupinsi1@in.ibm.com>2020-05-20 13:30:28 +0530
committerTakamune Cho <takamune.cho@att.com>2020-05-20 13:38:23 +0000
commit89e22c1ebb31304382bc8548b5220ebd6aeaf39e (patch)
treed9628e2a77b8cd972c91df0e556be03f8d913b1f /appc-outbound
parent13ea0be3281311ef1a7dce434095b8ff6a0b1180 (diff)
fixed jUnits in 5 files
Issue-ID: APPC-1859 Change-Id: I4ac447fc9884b30aa07924137d0142b97e43e8a0 Signed-off-by: Rupinder <rupinsi1@in.ibm.com>
Diffstat (limited to 'appc-outbound')
-rw-r--r--appc-outbound/appc-aai-client/provider/src/test/java/org/onap/appc/aai/client/node/TestAAIResourceNode.java3
-rw-r--r--appc-outbound/appc-network-inventory-client/provider/src/test/java/org/onap/appc/instar/interfaceImpl/TestInstarResponseHandlerImpl.java4
-rw-r--r--appc-outbound/appc-network-inventory-client/provider/src/test/java/org/onap/appc/instar/node/TestSecureRestClientTrustManager.java2
3 files changed, 9 insertions, 0 deletions
diff --git a/appc-outbound/appc-aai-client/provider/src/test/java/org/onap/appc/aai/client/node/TestAAIResourceNode.java b/appc-outbound/appc-aai-client/provider/src/test/java/org/onap/appc/aai/client/node/TestAAIResourceNode.java
index cb0758406..d1d224b43 100644
--- a/appc-outbound/appc-aai-client/provider/src/test/java/org/onap/appc/aai/client/node/TestAAIResourceNode.java
+++ b/appc-outbound/appc-aai-client/provider/src/test/java/org/onap/appc/aai/client/node/TestAAIResourceNode.java
@@ -104,6 +104,7 @@ public class TestAAIResourceNode {
AAIResourceNode aai = new AAIResourceNode();
aai.populateContext(vservers, ctx, "vserver.");
log.info(ctx.getAttribute("vserver.vm[0].vserver-name"));
+ assertNotNull(vserverMap);
}
@Test
@@ -245,6 +246,7 @@ public class TestAAIResourceNode {
AaiService aaiService = Mockito.mock(AaiService.class);
Mockito.doReturn(aaiService).when(aai).getAaiService();
aai.addVnfcs(inParams, ctx);
+ assertNotNull(ctx);
}
@Test
@@ -347,6 +349,7 @@ public class TestAAIResourceNode {
ctx.setAttribute("test.vnf.vm-with-no-vnfcs-count-vf-module", "0");
ctx.setAttribute("test.vnf.vm-count-for-vf-module", "2");
aairn.processCheckForVfModule("vfmoduleId1", ctx, "test.", 2);
+ assertNotNull(aairn);
}
@Test
diff --git a/appc-outbound/appc-network-inventory-client/provider/src/test/java/org/onap/appc/instar/interfaceImpl/TestInstarResponseHandlerImpl.java b/appc-outbound/appc-network-inventory-client/provider/src/test/java/org/onap/appc/instar/interfaceImpl/TestInstarResponseHandlerImpl.java
index 3d95ebfcd..d40de6775 100644
--- a/appc-outbound/appc-network-inventory-client/provider/src/test/java/org/onap/appc/instar/interfaceImpl/TestInstarResponseHandlerImpl.java
+++ b/appc-outbound/appc-network-inventory-client/provider/src/test/java/org/onap/appc/instar/interfaceImpl/TestInstarResponseHandlerImpl.java
@@ -29,6 +29,7 @@ import org.junit.Test;
import org.onap.appc.instar.utils.InstarClientConstant;
import org.onap.sdnc.config.params.data.ResponseKey;
import org.onap.ccsdk.sli.core.sli.SvcLogicContext;
+import static org.junit.Assert.assertNotNull;
public class TestInstarResponseHandlerImpl {
@@ -44,6 +45,7 @@ public class TestInstarResponseHandlerImpl {
+ "[{\"fqdn\":\"fqdnx\",\"v4IPAddress\":\"value2\"}]}";
InstarResponseHandlerImpl impl = new InstarResponseHandlerImpl(resKey,svc);
impl.processResponse(instarRes, instarKey);
+ assertNotNull(resKey);
}
@Test
@@ -58,6 +60,7 @@ public class TestInstarResponseHandlerImpl {
+ "[{\"fqdn\":\"fqdnx\",\"v6IPAddress\":\"value2\"}]}";
InstarResponseHandlerImpl impl = new InstarResponseHandlerImpl(resKey,svc);
impl.processResponse(instarRes, instarKey);
+ assertNotNull(resKey);
}
@Test
@@ -75,6 +78,7 @@ public class TestInstarResponseHandlerImpl {
+ "[{\"fqdn\":\"fqdnx\",\"v6IPAddress\":\"value2\"}]}";
InstarResponseHandlerImpl impl = new InstarResponseHandlerImpl(resKey,svc);
impl.processResponse(instarRes, instarKey);
+ assertNotNull(impl);
}
@Test
diff --git a/appc-outbound/appc-network-inventory-client/provider/src/test/java/org/onap/appc/instar/node/TestSecureRestClientTrustManager.java b/appc-outbound/appc-network-inventory-client/provider/src/test/java/org/onap/appc/instar/node/TestSecureRestClientTrustManager.java
index 0079c9293..84b915297 100644
--- a/appc-outbound/appc-network-inventory-client/provider/src/test/java/org/onap/appc/instar/node/TestSecureRestClientTrustManager.java
+++ b/appc-outbound/appc-network-inventory-client/provider/src/test/java/org/onap/appc/instar/node/TestSecureRestClientTrustManager.java
@@ -28,6 +28,7 @@ import java.security.cert.X509Certificate;
import org.junit.Test;
import org.mockito.Mockito;
import org.onap.appc.instar.dme2client.SecureRestClientTrustManager;
+import static org.junit.Assert.assertNotNull;
public class TestSecureRestClientTrustManager {
@@ -38,5 +39,6 @@ public class TestSecureRestClientTrustManager {
Mockito.when(sm.getAcceptedIssuers()).thenReturn(Mockito.any());
Mockito.when(sm.isClientTrusted(arg0)).thenReturn(true);
Mockito.when(sm.isServerTrusted(arg0)).thenReturn(true);
+ assertNotNull(sm);
}
}