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
Commit includes ControlLoopPolicy API and bugfixes
[policy/engine.git]
/
ECOMP-XACML
/
src
/
test
/
java
/
org
/
openecomp
/
policy
/
xacml
/
test
/
TestBase.java
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
8f757ab
..
3f2469b
100644
(file)
--- 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> {
Path file;
InputStream is;
BufferedReader reader;
Path file;
InputStream is;
BufferedReader reader;
- List<StdMutableAttribute> attributes = new ArrayList<
StdMutableAttribute
>();
+ List<StdMutableAttribute> attributes = new ArrayList<>();
public Generator(Path path) {
this.file = path;
public Generator(Path path) {
this.file = path;
@@
-193,7
+193,7
@@
public class TestBase extends SimpleFileVisitor<Path> {
protected URL restURL = null;
protected int loop = 1;
protected PDPEngine engine = null;
protected URL restURL = null;
protected int loop = 1;
protected PDPEngine engine = null;
- protected List<Generator> generators = new ArrayList<
Generator
>();
+ protected List<Generator> generators = new ArrayList<>();
protected static DataTypeFactory dataTypeFactory = null;
private long permits = 0;
protected static DataTypeFactory dataTypeFactory = null;
private long permits = 0;
@@
-494,7
+494,7
@@
public class TestBase extends SimpleFileVisitor<Path> {
this.sendRequest(file, group);
} catch (Exception e) {
logger.error(e);
this.sendRequest(file, group);
} catch (Exception e) {
logger.error(e);
-
e.printStackTrace(
);
+
logger.error("Exception Occured"+e
);
}
}
return super.visitFile(file, attrs);
}
}
return super.visitFile(file, attrs);
@@
-649,7
+649,7
@@
public class TestBase extends SimpleFileVisitor<Path> {
//
// Copy the request attributes
//
//
// Copy the request attributes
//
- List<StdMutableRequestAttributes> attributes = new ArrayList<
StdMutableRequestAttributes
>();
+ List<StdMutableRequestAttributes> attributes = new ArrayList<>();
for (RequestAttributes a : request.getRequestAttributes()) {
attributes.add(new StdMutableRequestAttributes(a));
}
for (RequestAttributes a : request.getRequestAttributes()) {
attributes.add(new StdMutableRequestAttributes(a));
}