JSONObject content = new JSONObject(contentStr);
MockDBService dbService = MockDBService.initialise();
Whitebox.invokeMethod(ah, "populateProtocolReference", dbService, content);
+ assertNotNull(ah);
}
@Test
MockDBService dbService = MockDBService.initialise();
SvcLogicContext context = new SvcLogicContext();
artifactHandlerNode.processVmList(content, context, dbService);
+ assertNotNull(contentStr);
}
@Test
SvcLogicContext context = new SvcLogicContext();
context.setAttribute(SdcArtifactHandlerConstants.DEVICE_PROTOCOL, "Test");
artifactHandlerNode.processConfigTypeActions(content, dbService, context);
+ assertNotNull(contentStr);
}
@Test
artifactHandlerNode.processActionLists(content, actionLevel, vnfcActionList, vfModuleActionList,
vnfActionList, vmActionVnfcFunctionCodesList);
}
+ assertNotNull(contentStr);
}
@Test
context.setAttribute("vnf-type", "someVnf");
context.setAttribute("action", "ConfigScaleOut");
artifactHandlerNode.processArtifactList(content, dbService, context, null);
+ assertNotNull(content);
}
@Test
documentInfo.put(SdcArtifactHandlerConstants.ARTIFACT_DESRIPTION, "testArtifactDesc");
Whitebox.invokeMethod(ah, "processAndStoreCapabilitiesArtifact", dbService, documentInfo, capabilities,
"artifactName", "someVnf");
+ assertNotNull(ah);
}