use of org.onap.so.client.cds.ConfigureInstanceParamsForPnf in project so by onap.
the class GenericPnfCDSControllerRunnableBBTest method prepareData.
private void prepareData() throws BBObjectNotFoundException, PayloadGenerationException {
Pnf pnf = new Pnf();
ServiceInstance serviceInstance = new ServiceInstance();
pnf.setPnfName(pnfName);
pnf.setPnfId(pnfID);
ModelInfoPnf modelInfoPnf = new ModelInfoPnf();
modelInfoPnf.setModelCustomizationUuid(pnfCustomizationUUID);
pnf.setModelInfoPnf(modelInfoPnf);
serviceInstance.setServiceInstanceId(serviceInstanceID);
ModelInfoServiceInstance modelInfoServiceInstance = new ModelInfoServiceInstance();
modelInfoServiceInstance.setModelUuid(serviceModelUUID);
serviceInstance.setModelInfoServiceInstance(modelInfoServiceInstance);
execution.setVariable(GENERAL_BLOCK_EXECUTION_MAP_KEY, createGeneralBuildingBlock(createService(createPnfsList())));
when(extractPojosForBB.extractByKey(eq(execution), eq(ResourceKey.PNF))).thenReturn(pnf);
when(extractPojosForBB.extractByKey(eq(execution), eq(ResourceKey.SERVICE_INSTANCE_ID))).thenReturn(serviceInstance);
doNothing().when(configureInstanceParamsForPnf).populateInstanceParams(any(), any(), any());
}
Aggregations