aboutsummaryrefslogtreecommitdiffstats
path: root/ONAP-REST/src/test/java/org/onap/policy/rest/XacmlRestTest.java
diff options
context:
space:
mode:
authorliamfallon <liam.fallon@est.tech>2019-11-18 12:36:28 +0000
committerliamfallon <liam.fallon@est.tech>2019-11-18 15:27:15 +0000
commit779125e31adbcc59a9864843b523bd6ed2751cbb (patch)
tree55d42bf962d5a684efeaf0025d90e6adc2551ab5 /ONAP-REST/src/test/java/org/onap/policy/rest/XacmlRestTest.java
parenta2ab61f0ad39970ad35c3e47ff8429f59850c469 (diff)
Unit/SONAR/Checkstyle in ONAP-REST
Util package of ONAP-REST, with JUnit added and SONAR/Checkstyle issues addressed. In cases where a class name change caused an update in another package, the license header on files for those knock on changes are not updated. Issue-ID: POLICY-2131 Change-Id: Ic134408efe76b9838f5607a07f1735d12bd41032 Signed-off-by: liamfallon <liam.fallon@est.tech>
Diffstat (limited to 'ONAP-REST/src/test/java/org/onap/policy/rest/XacmlRestTest.java')
-rw-r--r--ONAP-REST/src/test/java/org/onap/policy/rest/XacmlRestTest.java17
1 files changed, 8 insertions, 9 deletions
diff --git a/ONAP-REST/src/test/java/org/onap/policy/rest/XacmlRestTest.java b/ONAP-REST/src/test/java/org/onap/policy/rest/XacmlRestTest.java
index 19800b42e..3b03bdcc8 100644
--- a/ONAP-REST/src/test/java/org/onap/policy/rest/XacmlRestTest.java
+++ b/ONAP-REST/src/test/java/org/onap/policy/rest/XacmlRestTest.java
@@ -26,9 +26,6 @@ import static org.junit.Assert.fail;
import com.att.research.xacml.util.XACMLProperties;
-import java.io.ByteArrayInputStream;
-import java.io.File;
-import java.io.FileInputStream;
import java.io.IOException;
import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;
@@ -40,7 +37,6 @@ import java.util.List;
import java.util.Map;
import java.util.Properties;
-import javax.servlet.ReadListener;
import javax.servlet.ServletConfig;
import javax.servlet.ServletInputStream;
import javax.servlet.ServletOutputStream;
@@ -199,8 +195,8 @@ public class XacmlRestTest extends Mockito {
}
@Test
- public void testConstructorIsPrivate()
- throws NoSuchMethodException, IllegalAccessException, InvocationTargetException, InstantiationException {
+ public void testConstructorIsPrivate() throws NoSuchMethodException, IllegalAccessException,
+ InvocationTargetException, InstantiationException {
Constructor<XacmlRestProperties> constructor = XacmlRestProperties.class.getDeclaredConstructor();
assertTrue(Modifier.isPrivate(constructor.getModifiers()));
constructor.setAccessible(true);
@@ -289,9 +285,12 @@ public class XacmlRestTest extends Mockito {
XacmlRest.dumpRequest(httpServletRequest);
Map<String, String[]> parameterMap = new LinkedHashMap<>();
- String[] mapValue0 = {"MapValue0"};
- String[] mapValue1 = {"MapValue0"};
- String[] mapValue2 = {};
+ String[] mapValue0 =
+ { "MapValue0" };
+ String[] mapValue1 =
+ { "MapValue0" };
+ String[] mapValue2 =
+ {};
parameterMap.put("Key0", mapValue0);
parameterMap.put("Key1", mapValue1);
parameterMap.put("Key2", mapValue2);