Policy TestSuite Enabled
[policy/engine.git] / ECOMP-PDP / src / test / java / org / openecomp / policy / pdp / test / custom / TestCustom.java
index e6530a1..4d6ecb7 100644 (file)
@@ -45,9 +45,7 @@ import org.apache.commons.cli.CommandLine;
 import org.apache.commons.cli.GnuParser;
 import org.apache.commons.cli.Option;
 import org.apache.commons.cli.ParseException;
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-import org.openecomp.policy.common.logging.flexlogger.FlexLogger; 
+import org.openecomp.policy.common.logging.flexlogger.FlexLogger;
 import org.openecomp.policy.common.logging.flexlogger.Logger;
 
 import com.att.research.xacml.api.AttributeValue;
@@ -127,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);
                }
        }