aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--appc-inbound/appc-artifact-handler/provider/src/test/java/org/onap/appc/artifact/handler/node/ArtifactHandlerNodeTest.java6
-rw-r--r--appc-inbound/appc-interfaces-service/bundle/src/test/java/org/onap/appc/interfaceService/serviceExecutor/TestServiceExecutor.java2
-rw-r--r--appc-oam/appc-oam-bundle/src/test/java/org/onap/appc/oam/util/OperationHelperTest.java2
3 files changed, 10 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
diff --git a/appc-oam/appc-oam-bundle/src/test/java/org/onap/appc/oam/util/OperationHelperTest.java b/appc-oam/appc-oam-bundle/src/test/java/org/onap/appc/oam/util/OperationHelperTest.java
index d8280344d..0b288cacd 100644
--- a/appc-oam/appc-oam-bundle/src/test/java/org/onap/appc/oam/util/OperationHelperTest.java
+++ b/appc-oam/appc-oam-bundle/src/test/java/org/onap/appc/oam/util/OperationHelperTest.java
@@ -53,6 +53,7 @@ import org.powermock.core.classloader.annotations.PrepareForTest;
import org.powermock.modules.junit4.PowerMockRunner;
import org.powermock.reflect.Whitebox;
+import static org.junit.Assert.assertNotNull;
import static org.mockito.Mockito.mock;
import static org.powermock.api.mockito.PowerMockito.mockStatic;
@@ -149,6 +150,7 @@ public class OperationHelperTest {
MaintenanceModeInput mockInput1 = mock(MaintenanceModeInput.class);
Mockito.doReturn(mockCommonHeader).when(mockInput1).getCommonHeader();
operationHelper.isInputValid(mockInput1);
+ assertNotNull(mockInput);
}
@Test