X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=ECOMP-XACML%2Fsrc%2Ftest%2Fjava%2Forg%2Fopenecomp%2Fpolicy%2Fxacml%2Ftest%2FTestBase.java;h=3f2469bfda81c1367103358ad3aea1eb76ae2f69;hb=87c95be02a8a4d77e165dede90777e811b59dcae;hp=8f757ab5930c12bba7ae24d482991efe65e60065;hpb=91d04c64771832a0b8815ffbe1f0f9920320d94d;p=policy%2Fengine.git diff --git a/ECOMP-XACML/src/test/java/org/openecomp/policy/xacml/test/TestBase.java b/ECOMP-XACML/src/test/java/org/openecomp/policy/xacml/test/TestBase.java index 8f757ab59..3f2469bfd 100644 --- a/ECOMP-XACML/src/test/java/org/openecomp/policy/xacml/test/TestBase.java +++ b/ECOMP-XACML/src/test/java/org/openecomp/policy/xacml/test/TestBase.java @@ -109,7 +109,7 @@ public class TestBase extends SimpleFileVisitor { Path file; InputStream is; BufferedReader reader; - List attributes = new ArrayList(); + List attributes = new ArrayList<>(); public Generator(Path path) { this.file = path; @@ -193,7 +193,7 @@ public class TestBase extends SimpleFileVisitor { protected URL restURL = null; protected int loop = 1; protected PDPEngine engine = null; - protected List generators = new ArrayList(); + protected List generators = new ArrayList<>(); protected static DataTypeFactory dataTypeFactory = null; private long permits = 0; @@ -494,7 +494,7 @@ public class TestBase extends SimpleFileVisitor { this.sendRequest(file, group); } catch (Exception e) { logger.error(e); - e.printStackTrace(); + logger.error("Exception Occured"+e); } } return super.visitFile(file, attrs); @@ -649,7 +649,7 @@ public class TestBase extends SimpleFileVisitor { // // Copy the request attributes // - List attributes = new ArrayList(); + List attributes = new ArrayList<>(); for (RequestAttributes a : request.getRequestAttributes()) { attributes.add(new StdMutableRequestAttributes(a)); }