Code Review
/
policy
/
engine.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Sonar fixes for ONAP-PAP-REST
[policy/engine.git]
/
ONAP-PAP-REST
/
src
/
test
/
java
/
org
/
onap
/
policy
/
pap
/
xacml
/
rest
/
controller
/
DictionaryControllerTest.java
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
26509b1
..
0eda3fb
100644
(file)
--- 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();
MockHttpServletResponse response = new MockHttpServletResponse();
- controller.getAttributeDictionaryEntityDatabyAttributeName(re
quest, re
sponse);
+ controller.getAttributeDictionaryEntityDatabyAttributeName(response);
try {
assertTrue( response.getContentAsString() != null && response.getContentAsString().contains("attributeDictionaryDatas"));
try {
assertTrue( response.getContentAsString() != null && response.getContentAsString().contains("attributeDictionaryDatas"));
@@
-129,7
+129,7
@@
public class DictionaryControllerTest {
MockHttpServletResponse response = new MockHttpServletResponse();
MockHttpServletResponse response = new MockHttpServletResponse();
- controller.getAttributeDictionaryEntityData(re
quest, re
sponse);
+ controller.getAttributeDictionaryEntityData(response);
try {
assertTrue( response.getContentAsString() != null && response.getContentAsString().contains("attributeDictionaryDatas"));
try {
assertTrue( response.getContentAsString() != null && response.getContentAsString().contains("attributeDictionaryDatas"));
@@
-208,7
+208,7
@@
public class DictionaryControllerTest {
MockHttpServletResponse response = new MockHttpServletResponse();
MockHttpServletResponse response = new MockHttpServletResponse();
- controller.getOnapNameDictionaryByNameEntityData(re
quest, re
sponse);
+ controller.getOnapNameDictionaryByNameEntityData(response);
try {
assertTrue( response.getContentAsString() != null && response.getContentAsString().contains("onapNameDictionaryDatas"));
try {
assertTrue( response.getContentAsString() != null && response.getContentAsString().contains("onapNameDictionaryDatas"));
@@
-226,7
+226,7
@@
public class DictionaryControllerTest {
MockHttpServletResponse response = new MockHttpServletResponse();
MockHttpServletResponse response = new MockHttpServletResponse();
- controller.getOnapNameDictionaryEntityData(re
quest, re
sponse);
+ controller.getOnapNameDictionaryEntityData(response);
try {
assertTrue( response.getContentAsString() != null && response.getContentAsString().contains("onapNameDictionaryDatas"));
try {
assertTrue( response.getContentAsString() != null && response.getContentAsString().contains("onapNameDictionaryDatas"));