summaryrefslogtreecommitdiffstats
path: root/ECOMP-PDP/src/test
diff options
context:
space:
mode:
Diffstat (limited to 'ECOMP-PDP/src/test')
-rw-r--r--ECOMP-PDP/src/test/java/org/openecomp/policy/pdp/test/custom/TestBase.java2
-rw-r--r--ECOMP-PDP/src/test/java/org/openecomp/policy/pdp/test/custom/TestCustom.java4
2 files changed, 3 insertions, 3 deletions
diff --git a/ECOMP-PDP/src/test/java/org/openecomp/policy/pdp/test/custom/TestBase.java b/ECOMP-PDP/src/test/java/org/openecomp/policy/pdp/test/custom/TestBase.java
index 82fd5da7a..7e1928c41 100644
--- a/ECOMP-PDP/src/test/java/org/openecomp/policy/pdp/test/custom/TestBase.java
+++ b/ECOMP-PDP/src/test/java/org/openecomp/policy/pdp/test/custom/TestBase.java
@@ -494,7 +494,7 @@ public class TestBase extends SimpleFileVisitor<Path> {
this.sendRequest(file, group);
} catch (Exception e) {
logger.error(e);
- e.printStackTrace();
+ logger.error("Exception Occured"+e);
}
}
return super.visitFile(file, attrs);
diff --git a/ECOMP-PDP/src/test/java/org/openecomp/policy/pdp/test/custom/TestCustom.java b/ECOMP-PDP/src/test/java/org/openecomp/policy/pdp/test/custom/TestCustom.java
index e6d135ebc..4d6ecb714 100644
--- a/ECOMP-PDP/src/test/java/org/openecomp/policy/pdp/test/custom/TestCustom.java
+++ b/ECOMP-PDP/src/test/java/org/openecomp/policy/pdp/test/custom/TestCustom.java
@@ -125,13 +125,13 @@ public class TestCustom extends TestBase {
try (ObjectOutputStream os = new ObjectOutputStream(Files.newOutputStream(file))) {
os.writeObject(key.getPrivate());
} catch (IOException e) {
- e.printStackTrace();
+ logger.error("Exception Occured"+e);
}
file = Paths.get(this.directory, PUBLICKEY_FILE);
try (ObjectOutputStream os = new ObjectOutputStream(Files.newOutputStream(file))) {
os.writeObject(key.getPublic());
} catch (IOException e) {
- e.printStackTrace();
+ logger.error("Exception Occured"+e);
}
}