import com.att.eelf.configuration.EELFLogger;
import com.att.eelf.configuration.EELFManager;
+import static org.junit.Assert.assertNotNull;
@RunWith(PowerMockRunner.class)
@PrepareForTest({FrameworkUtil.class})
inParams.put("AppcAaiClientConstant.INPUT_PARAM_RESPONSE_PREFIX", "prefix.");
ctx.setAttribute("tmp.vnfInfo.vm[1].vnfc-name", "nullnull001");
aaiService.insertVnfcs(inParams, ctx, 2, null);
+ assertNotNull(aaiService);
}
@Test
inParams.put("AppcAaiClientConstant.INPUT_PARAM_RESPONSE_PREFIX", "prefix.");
ctx.setAttribute("tmp.vnfInfo.vm[1].vnfc-name", "nullnull001");
aaiService.getVnfcData(inParams, ctx, 1);
+ assertNotNull(ctx);
}
@Test
mockAai.populateAllVnfInfo(ctx, "tmp.vnfInfo");
// mockAai.insertVnfcs(inParams,ctx,2, 2) ;
+ assertNotNull(mockAai);
}
@Test
mockAai.populateAllVnfInfo(ctx, "tmp.vnfInfo");
mockAai.updateVServerStatus(inParams, ctx, 2);
+
+ assertNotNull(mockAai);
}
@Test
mockAai.populateAllVnfInfo1(ctx, "tmp.vnfInfo");
mockAai.insertVnfcs(inParams, ctx, 2,"vfModuleId1");
+ assertNotNull(mockAai);
}
mockAai.populateAllVnfInfo(ctx, "tmp.vnfInfo");
mockAai.updateVnfStatus(inParams, ctx);
+
+ assertNotNull(ctx);
}
private void printContext(SvcLogicContext ctx) throws Exception {
{
MockAaiService mockAai = new MockAaiService(aaiClient);
Map<String, String> params=mockAai.getExpectedParams();
- mockAai.addVnfc("ibcxvm0002func0001",params , "");
+ mockAai.addVnfc("ibcxvm0002func0001",params , "");
+ assertNotNull(mockAai);
}
}