diff options
author | 2020-05-20 12:50:14 +0530 | |
---|---|---|
committer | 2020-05-20 13:39:14 +0000 | |
commit | 82f2af54dbe7a9f9dcc0a10c714ddfc863b078bc (patch) | |
tree | d58200ce990daae6ed6cfe5d452f356c7b16e6b5 /appc-inbound | |
parent | 0c8f94750cd5d60683444fe79bfc2c137b9266bc (diff) |
fixed jUnit in 3 files
Issue-ID: APPC-1859
Change-Id: I911bb2dc4fa46a73cc7ffc60712b66e1902403fe
Signed-off-by: Rupinder <rupinsi1@in.ibm.com>
Diffstat (limited to 'appc-inbound')
2 files changed, 8 insertions, 0 deletions
diff --git a/appc-inbound/appc-artifact-handler/provider/src/test/java/org/onap/appc/artifact/handler/node/ArtifactHandlerNodeTest.java b/appc-inbound/appc-artifact-handler/provider/src/test/java/org/onap/appc/artifact/handler/node/ArtifactHandlerNodeTest.java index 98df4d299..1645336c3 100644 --- a/appc-inbound/appc-artifact-handler/provider/src/test/java/org/onap/appc/artifact/handler/node/ArtifactHandlerNodeTest.java +++ b/appc-inbound/appc-artifact-handler/provider/src/test/java/org/onap/appc/artifact/handler/node/ArtifactHandlerNodeTest.java @@ -115,6 +115,7 @@ public class ArtifactHandlerNodeTest { JSONObject content = new JSONObject(contentStr); MockDBService dbService = MockDBService.initialise(); Whitebox.invokeMethod(ah, "populateProtocolReference", dbService, content); + assertNotNull(ah); } @Test @@ -177,6 +178,7 @@ public class ArtifactHandlerNodeTest { MockDBService dbService = MockDBService.initialise(); SvcLogicContext context = new SvcLogicContext(); artifactHandlerNode.processVmList(content, context, dbService); + assertNotNull(contentStr); } @Test @@ -187,6 +189,7 @@ public class ArtifactHandlerNodeTest { SvcLogicContext context = new SvcLogicContext(); context.setAttribute(SdcArtifactHandlerConstants.DEVICE_PROTOCOL, "Test"); artifactHandlerNode.processConfigTypeActions(content, dbService, context); + assertNotNull(contentStr); } @Test @@ -204,6 +207,7 @@ public class ArtifactHandlerNodeTest { artifactHandlerNode.processActionLists(content, actionLevel, vnfcActionList, vfModuleActionList, vnfActionList, vmActionVnfcFunctionCodesList); } + assertNotNull(contentStr); } @Test @@ -251,6 +255,7 @@ public class ArtifactHandlerNodeTest { context.setAttribute("vnf-type", "someVnf"); context.setAttribute("action", "ConfigScaleOut"); artifactHandlerNode.processArtifactList(content, dbService, context, null); + assertNotNull(content); } @Test @@ -495,6 +500,7 @@ public class ArtifactHandlerNodeTest { documentInfo.put(SdcArtifactHandlerConstants.ARTIFACT_DESRIPTION, "testArtifactDesc"); Whitebox.invokeMethod(ah, "processAndStoreCapabilitiesArtifact", dbService, documentInfo, capabilities, "artifactName", "someVnf"); + assertNotNull(ah); } diff --git a/appc-inbound/appc-interfaces-service/bundle/src/test/java/org/onap/appc/interfaceService/serviceExecutor/TestServiceExecutor.java b/appc-inbound/appc-interfaces-service/bundle/src/test/java/org/onap/appc/interfaceService/serviceExecutor/TestServiceExecutor.java index a81d56db0..e37e684f0 100644 --- a/appc-inbound/appc-interfaces-service/bundle/src/test/java/org/onap/appc/interfaceService/serviceExecutor/TestServiceExecutor.java +++ b/appc-inbound/appc-interfaces-service/bundle/src/test/java/org/onap/appc/interfaceService/serviceExecutor/TestServiceExecutor.java @@ -29,6 +29,7 @@ package org.onap.appc.interfaceService.serviceExecutor; import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertNotNull; import org.junit.Test; import org.onap.appc.interfaces.service.executorImpl.ServiceExecutorImpl; import org.onap.appc.interfaces.service.data.ScopeOverlap; @@ -45,6 +46,7 @@ public class TestServiceExecutor { ServiceExecutorImpl sei = new ServiceExecutorImpl(); String requestData = "{\"vnf-id\":\"ibcx8888v\",\"current-request\" :{\"action\" : \"Audit\",\"action-identifiers\" : {\"service-instance-id\" : \"service-instance-id\",\"vnf-id\" : \"vnf-id\",\"vnfc-name\" : \"vnfc-name\",\"vf-module-id\" : \"vf-module-id\",\"vserver-id\": \"vserver-id\"}},\"in-progress-requests\" :[{\"action\" : \"HealthCheck\",\"action-identifiers\" : {\"service-instance-id\" : \"service-instance-id1\",\"vnf-id\" : \"vnf-id1\",\"vnfc-name\" : \"vnfc-name1\",\"vf-module-id\" : \"vf-module-id\",\"vserver-id\": \"vserver-id1\"}},{\"action\" : \"CheckLock\",\"action-identifiers\" : {\"service-instance-id\" : \"service-instance-id2\",\"vnf-id\" : \"vnf-id2\",\"vnfc-name\" : \"vnfc-name2\",\"vf-module-id\" : \"vf-module-id2\",\"vserver-id\": \"vserver-id2\"}}]}"; sei.isRequestOverLap(requestData); + assertNotNull(sei); } @Test |