From 7e547eaa55920dfbc9691eab33bb728395b50cf2 Mon Sep 17 00:00:00 2001 From: Ravindra Bakkamanthala Date: Mon, 15 May 2017 12:53:18 -0400 Subject: Policy TestSuite Enabled Change-Id: I9f98c7dcdcf98713d73544956d873a84fc82adf7 Signed-off-by: Ravindra Bakkamanthala --- .../src/test/java/org/openecomp/policy/pdp/test/custom/TestBase.java | 2 +- .../test/java/org/openecomp/policy/pdp/test/custom/TestCustom.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'ECOMP-PDP/src/test/java/org/openecomp') 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 { 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); } } -- cgit 1.2.3-korg