diff options
author | Jorge Hernandez <jh1730@att.com> | 2017-08-30 18:03:27 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2017-08-30 18:03:27 +0000 |
commit | af7f65b6cdc759e4968604e7fa9ff45562bdd8e2 (patch) | |
tree | 2a5619b15bc63f24fd819833cf7d7c0b14e1ca3a /ONAP-PAP-REST/src/test | |
parent | e476c289078f91ebdee1a07455e578226f15129e (diff) | |
parent | 76dc816cecf02b26b56b6fc40118fd8b9f44fd39 (diff) |
Merge changes I3845ca4f,I7ae1ad11
* changes:
ONAP-PAP-REST sonar fixes
Sonar fixes for ONAP-PAP-REST
Diffstat (limited to 'ONAP-PAP-REST/src/test')
2 files changed, 16 insertions, 16 deletions
diff --git a/ONAP-PAP-REST/src/test/java/org/onap/policy/pap/xacml/rest/controller/DictionaryControllerTest.java b/ONAP-PAP-REST/src/test/java/org/onap/policy/pap/xacml/rest/controller/DictionaryControllerTest.java index 26509b1aa..0eda3fb95 100644 --- a/ONAP-PAP-REST/src/test/java/org/onap/policy/pap/xacml/rest/controller/DictionaryControllerTest.java +++ b/ONAP-PAP-REST/src/test/java/org/onap/policy/pap/xacml/rest/controller/DictionaryControllerTest.java @@ -111,7 +111,7 @@ public class DictionaryControllerTest { MockHttpServletResponse response = new MockHttpServletResponse(); - controller.getAttributeDictionaryEntityDatabyAttributeName(request, response); + controller.getAttributeDictionaryEntityDatabyAttributeName(response); try { assertTrue( response.getContentAsString() != null && response.getContentAsString().contains("attributeDictionaryDatas")); @@ -129,7 +129,7 @@ public class DictionaryControllerTest { MockHttpServletResponse response = new MockHttpServletResponse(); - controller.getAttributeDictionaryEntityData(request, response); + controller.getAttributeDictionaryEntityData(response); try { assertTrue( response.getContentAsString() != null && response.getContentAsString().contains("attributeDictionaryDatas")); @@ -208,7 +208,7 @@ public class DictionaryControllerTest { MockHttpServletResponse response = new MockHttpServletResponse(); - controller.getOnapNameDictionaryByNameEntityData(request, response); + controller.getOnapNameDictionaryByNameEntityData(response); try { assertTrue( response.getContentAsString() != null && response.getContentAsString().contains("onapNameDictionaryDatas")); @@ -226,7 +226,7 @@ public class DictionaryControllerTest { MockHttpServletResponse response = new MockHttpServletResponse(); - controller.getOnapNameDictionaryEntityData(request, response); + controller.getOnapNameDictionaryEntityData(response); try { assertTrue( response.getContentAsString() != null && response.getContentAsString().contains("onapNameDictionaryDatas")); diff --git a/ONAP-PAP-REST/src/test/java/org/onap/policy/pap/xacml/rest/controller/MicroServiceDictionaryControllerTest.java b/ONAP-PAP-REST/src/test/java/org/onap/policy/pap/xacml/rest/controller/MicroServiceDictionaryControllerTest.java index e307820e5..dccf3a5a4 100644 --- a/ONAP-PAP-REST/src/test/java/org/onap/policy/pap/xacml/rest/controller/MicroServiceDictionaryControllerTest.java +++ b/ONAP-PAP-REST/src/test/java/org/onap/policy/pap/xacml/rest/controller/MicroServiceDictionaryControllerTest.java @@ -138,7 +138,7 @@ public class MicroServiceDictionaryControllerTest { MockHttpServletResponse response = new MockHttpServletResponse(); - controller.getDCAEUUIDDictionaryByNameEntityData(request, response); + controller.getDCAEUUIDDictionaryByNameEntityData(response); try { assertTrue( response.getContentAsString() != null && response.getContentAsString().contains("dcaeUUIDDictionaryDatas")); @@ -157,7 +157,7 @@ public class MicroServiceDictionaryControllerTest { MockHttpServletResponse response = new MockHttpServletResponse(); - controller.getDCAEUUIDDictionaryEntityData(request, response); + controller.getDCAEUUIDDictionaryEntityData(response); try { assertTrue( response.getContentAsString() != null && response.getContentAsString().contains("dcaeUUIDDictionaryDatas")); @@ -235,7 +235,7 @@ public class MicroServiceDictionaryControllerTest { MockHttpServletResponse response = new MockHttpServletResponse(); - controller.getMicroServiceConfigNameByNameDictionaryEntityData(request, response); + controller.getMicroServiceConfigNameByNameDictionaryEntityData(response); try { assertTrue( response.getContentAsString() != null && response.getContentAsString().contains("microServiceCongigNameDictionaryDatas")); @@ -253,7 +253,7 @@ public class MicroServiceDictionaryControllerTest { MockHttpServletResponse response = new MockHttpServletResponse(); - controller.getMicroServiceConfigNameDictionaryEntityData(request, response); + controller.getMicroServiceConfigNameDictionaryEntityData(response); try { assertTrue( response.getContentAsString() != null && response.getContentAsString().contains("microServiceCongigNameDictionaryDatas")); @@ -332,7 +332,7 @@ public class MicroServiceDictionaryControllerTest { MockHttpServletResponse response = new MockHttpServletResponse(); - controller.getMicroServiceLocationByNameDictionaryEntityData(request, response); + controller.getMicroServiceLocationByNameDictionaryEntityData(response); try { assertTrue( response.getContentAsString() != null && response.getContentAsString().contains("microServiceLocationDictionaryDatas")); @@ -350,7 +350,7 @@ public class MicroServiceDictionaryControllerTest { MockHttpServletResponse response = new MockHttpServletResponse(); - controller.getMicroServiceLocationDictionaryEntityData(request, response); + controller.getMicroServiceLocationDictionaryEntityData(response); try { assertTrue( response.getContentAsString() != null && response.getContentAsString().contains("microServiceLocationDictionaryDatas")); @@ -429,7 +429,7 @@ public class MicroServiceDictionaryControllerTest { MockHttpServletResponse response = new MockHttpServletResponse(); - controller.getMicroServiceAttributeByNameDictionaryEntityData(request, response); + controller.getMicroServiceAttributeByNameDictionaryEntityData(response); try { assertTrue( response.getContentAsString() != null && response.getContentAsString().contains("microServiceAttributeDictionaryDatas")); @@ -447,7 +447,7 @@ public class MicroServiceDictionaryControllerTest { MockHttpServletResponse response = new MockHttpServletResponse(); - controller.getMicroServiceAttributeDictionaryEntityData(request, response); + controller.getMicroServiceAttributeDictionaryEntityData(response); try { assertTrue( response.getContentAsString() != null && response.getContentAsString().contains("microServiceAttributeDictionaryDatas")); @@ -525,7 +525,7 @@ public class MicroServiceDictionaryControllerTest { MockHttpServletResponse response = new MockHttpServletResponse(); - controller.getMicroServiceModelsDictionaryByNameEntityData(request, response); + controller.getMicroServiceModelsDictionaryByNameEntityData(response); try { assertTrue( response.getContentAsString() != null && response.getContentAsString().contains("microServiceModelsDictionaryDatas")); @@ -574,7 +574,7 @@ public class MicroServiceDictionaryControllerTest { try { // mock the getReader() call when(request.getReader()).thenReturn(br); - controller.getMicroServiceModelsDictionaryEntityData(request, response); + controller.getMicroServiceModelsDictionaryEntityData(response); logger.info("response.getContentAsString(): " + response.getContentAsString()); assertTrue( response.getContentAsString() != null && response.getContentAsString().contains("microServiceModelsDictionaryDatas")); @@ -598,7 +598,7 @@ public class MicroServiceDictionaryControllerTest { try { // mock the getReader() call when(request.getReader()).thenReturn(br); - controller.getMicroServiceModelsDictionaryEntityDataServiceVersion(request, response); + controller.getMicroServiceModelsDictionaryEntityDataServiceVersion(response); logger.info("response.getContentAsString(): " + response.getContentAsString()); assertTrue( response.getContentAsString() != null && response.getContentAsString().contains("microServiceModelsDictionaryDatas")); @@ -622,7 +622,7 @@ public class MicroServiceDictionaryControllerTest { try { // mock the getReader() call when(request.getReader()).thenReturn(br); - controller.getMicroServiceModelsDictionaryClassEntityData(request, response); + controller.getMicroServiceModelsDictionaryClassEntityData(response); logger.info("response.getContentAsString(): " + response.getContentAsString()); assertTrue( response.getContentAsString() != null && response.getContentAsString().contains("microServiceModelsDictionaryClassDatas")); |