From 0c8f94750cd5d60683444fe79bfc2c137b9266bc Mon Sep 17 00:00:00 2001 From: Rupinder Date: Wed, 20 May 2020 13:12:43 +0530 Subject: fixed jUnits in TestAaiService.java Issue-ID: APPC-1859 Change-Id: I1b6b8ba47126aeffdbb0cf8feeb909a4cfb8fa1c Signed-off-by: Rupinder --- .../java/org/onap/appc/aai/client/aai/TestAaiService.java | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/appc-outbound/appc-aai-client/provider/src/test/java/org/onap/appc/aai/client/aai/TestAaiService.java b/appc-outbound/appc-aai-client/provider/src/test/java/org/onap/appc/aai/client/aai/TestAaiService.java index bf22606d3..e91d8953a 100644 --- a/appc-outbound/appc-aai-client/provider/src/test/java/org/onap/appc/aai/client/aai/TestAaiService.java +++ b/appc-outbound/appc-aai-client/provider/src/test/java/org/onap/appc/aai/client/aai/TestAaiService.java @@ -52,6 +52,7 @@ import org.onap.ccsdk.sli.adaptors.aai.AAIClient; import com.att.eelf.configuration.EELFLogger; import com.att.eelf.configuration.EELFManager; +import static org.junit.Assert.assertNotNull; @RunWith(PowerMockRunner.class) @PrepareForTest({FrameworkUtil.class}) @@ -122,6 +123,7 @@ public class TestAaiService { 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 @@ -133,6 +135,7 @@ public class TestAaiService { 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 @@ -334,6 +337,7 @@ public class TestAaiService { mockAai.populateAllVnfInfo(ctx, "tmp.vnfInfo"); // mockAai.insertVnfcs(inParams,ctx,2, 2) ; + assertNotNull(mockAai); } @Test @@ -350,6 +354,8 @@ public class TestAaiService { mockAai.populateAllVnfInfo(ctx, "tmp.vnfInfo"); mockAai.updateVServerStatus(inParams, ctx, 2); + + assertNotNull(mockAai); } @Test @@ -368,6 +374,7 @@ public class TestAaiService { mockAai.populateAllVnfInfo1(ctx, "tmp.vnfInfo"); mockAai.insertVnfcs(inParams, ctx, 2,"vfModuleId1"); + assertNotNull(mockAai); } @@ -442,6 +449,8 @@ public class TestAaiService { mockAai.populateAllVnfInfo(ctx, "tmp.vnfInfo"); mockAai.updateVnfStatus(inParams, ctx); + + assertNotNull(ctx); } private void printContext(SvcLogicContext ctx) throws Exception { @@ -505,7 +514,8 @@ public class TestAaiService { { MockAaiService mockAai = new MockAaiService(aaiClient); Map params=mockAai.getExpectedParams(); - mockAai.addVnfc("ibcxvm0002func0001",params , ""); + mockAai.addVnfc("ibcxvm0002func0001",params , ""); + assertNotNull(mockAai); } } -- cgit 1.2.3-korg