aboutsummaryrefslogtreecommitdiffstats
path: root/ONAP-PAP-REST/src/test/java
diff options
context:
space:
mode:
authorJorge Hernandez <jh1730@att.com>2017-08-30 18:03:27 +0000
committerGerrit Code Review <gerrit@onap.org>2017-08-30 18:03:27 +0000
commitaf7f65b6cdc759e4968604e7fa9ff45562bdd8e2 (patch)
tree2a5619b15bc63f24fd819833cf7d7c0b14e1ca3a /ONAP-PAP-REST/src/test/java
parente476c289078f91ebdee1a07455e578226f15129e (diff)
parent76dc816cecf02b26b56b6fc40118fd8b9f44fd39 (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/java')
-rw-r--r--ONAP-PAP-REST/src/test/java/org/onap/policy/pap/xacml/rest/controller/DictionaryControllerTest.java8
-rw-r--r--ONAP-PAP-REST/src/test/java/org/onap/policy/pap/xacml/rest/controller/MicroServiceDictionaryControllerTest.java24
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"));