diff options
author | Rupinder <rupinsi1@in.ibm.com> | 2020-05-20 13:30:28 +0530 |
---|---|---|
committer | Takamune Cho <takamune.cho@att.com> | 2020-05-20 13:38:23 +0000 |
commit | 89e22c1ebb31304382bc8548b5220ebd6aeaf39e (patch) | |
tree | d9628e2a77b8cd972c91df0e556be03f8d913b1f /appc-outbound/appc-network-inventory-client/provider | |
parent | 13ea0be3281311ef1a7dce434095b8ff6a0b1180 (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/appc-network-inventory-client/provider')
2 files changed, 6 insertions, 0 deletions
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); } } |