diff options
author | Driptaroop Das <driptaroop.das@in.ibm.com> | 2019-03-07 01:19:14 +0530 |
---|---|---|
committer | Patrick Brady <patrick.brady@att.com> | 2019-03-13 22:34:05 +0000 |
commit | b3e8189197dda8dfc40fb64abdf9077adadf2242 (patch) | |
tree | 2ac00cda26ad711604f04270f9ae73e6e31e4c0b /appc-outbound/appc-aai-client/provider/src/test | |
parent | a50f4bb4d854fb18eea62dd0601e52886e1c823e (diff) |
Multiple Sonar Fixes
Multiple Sonar Fixes
Issue-ID: APPC-1525
Change-Id: I58b8adc0e53a00c6d3de05c921dafdd3dd9fe118
Signed-off-by: Driptaroop Das <driptaroop.das@in.ibm.com>
Diffstat (limited to 'appc-outbound/appc-aai-client/provider/src/test')
-rw-r--r-- | appc-outbound/appc-aai-client/provider/src/test/java/org/onap/appc/aai/client/aai/TestAaiService.java | 18 |
1 files changed, 9 insertions, 9 deletions
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 9087a7fe7..bf22606d3 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 @@ -121,7 +121,7 @@ public class TestAaiService { SvcLogicContext ctx = new SvcLogicContext(); inParams.put("AppcAaiClientConstant.INPUT_PARAM_RESPONSE_PREFIX", "prefix."); ctx.setAttribute("tmp.vnfInfo.vm[1].vnfc-name", "nullnull001"); - aaiService.insertVnfcs(inParams, ctx, 2, 2, null); + aaiService.insertVnfcs(inParams, ctx, 2, null); } @Test @@ -132,7 +132,7 @@ public class TestAaiService { SvcLogicContext ctx = new SvcLogicContext(); inParams.put("AppcAaiClientConstant.INPUT_PARAM_RESPONSE_PREFIX", "prefix."); ctx.setAttribute("tmp.vnfInfo.vm[1].vnfc-name", "nullnull001"); - aaiService.getVnfcData(inParams, ctx, 1, 1); + aaiService.getVnfcData(inParams, ctx, 1); } @Test @@ -367,7 +367,7 @@ public class TestAaiService { mockAai.populateAllVnfInfo1(ctx, "tmp.vnfInfo"); - mockAai.insertVnfcs(inParams, ctx, 2, 2,"vfModuleId1"); + mockAai.insertVnfcs(inParams, ctx, 2,"vfModuleId1"); } @@ -387,7 +387,7 @@ public class TestAaiService { mockAai.populateAllVnfInfo1(ctx, "tmp.vnfInfo"); - mockAai.insertVnfcs(inParams, ctx, 2, 2, null); + mockAai.insertVnfcs(inParams, ctx, 2, null); assertEquals(ctx.getAttribute("tmp.vnfInfo.vm[0].vnfc-name"), "dbjx0001vm001dbj001"); assertEquals(ctx.getAttribute("tmp.vnfInfo.vm[0].vnfc-function-code"), "dbj"); @@ -414,7 +414,7 @@ public class TestAaiService { mockAai.populateAllVnfInfo1(ctx, "tmp.vnfInfo"); - mockAai.insertVnfcs(inParams, ctx, 2, 2,null); + mockAai.insertVnfcs(inParams, ctx, 2,null); @@ -464,22 +464,22 @@ public class TestAaiService { ctx.setAttribute("tmp.vnfInfo.vm[0].vnfc-function-code", "fc1"); ctx.setAttribute("tmp.vnfInfo.vm[0].group-notation", "gn2"); MockAaiService aai=new MockAaiService(aaiClient); - String groupNotationValue1 = aai.getGroupNotationForExistigValue(ctx, "tmp.vnfInfo", "fc1", 2); + String groupNotationValue1 = aai.getGroupNotationForExistigValue(ctx, "fc1", 2); assertEquals (groupNotationValue1,null); ctx.setAttribute("tmp.vnfInfo.vm[0].group-notation", "gn1"); ctx.setAttribute("tmp.vnfInfo.vm[1].group-notation", "gn1"); - String groupNotationValue2 = aai.getGroupNotationForExistigValue(ctx, "tmp.vnfInfo", "fc1", 2); + String groupNotationValue2 = aai.getGroupNotationForExistigValue(ctx, "fc1", 2); assertEquals (groupNotationValue2,"gn1"); ctx.setAttribute("tmp.vnfInfo.vm[2].vf-module-id", "vfmodule01"); ctx.setAttribute("tmp.vnfInfo.vm[2].vnfc-function-code", "fc1"); ctx.setAttribute("tmp.vnfInfo.vm[2].group-notation", "gn2"); - String groupNotationValue3 = aai.getGroupNotationForExistigValue(ctx, "tmp.vnfInfo", "fc1", 3); + String groupNotationValue3 = aai.getGroupNotationForExistigValue(ctx, "fc1", 3); assertEquals (groupNotationValue3,null); ctx.setAttribute("tmp.vnfInfo.vm[2].group-notation", "gn1"); - String groupNotationValue4 = aai.getGroupNotationForExistigValue(ctx, "tmp.vnfInfo", "fc1", 3); + String groupNotationValue4 = aai.getGroupNotationForExistigValue(ctx, "fc1", 3); assertEquals (groupNotationValue4,"gn1"); } |