Policy TestSuite Enabled
[policy/engine.git] / PolicyEngineClient / src / main / java / org / openecomp / policyEngine / PolicyEngineTestClient.java
index f2606a9..ecdb166 100644 (file)
@@ -67,6 +67,7 @@ public class PolicyEngineTestClient {
         * @return
         */
 
+       @SuppressWarnings("deprecation")
        public static ArrayList<String> getConfig(PolicyEngine policyEngine,
                        String eCOMPComponentName, String configName,
                        Map<String, String> configAttributes) {
@@ -96,7 +97,7 @@ public class PolicyEngineTestClient {
                                }
                        }
                } catch (PolicyConfigException e) {
-//                     e.printStackTrace();
+//                     logger.error("Exception Occured"+e);
                        resultReceived.add(""+e);
                }
                return resultReceived;
@@ -117,11 +118,12 @@ public class PolicyEngineTestClient {
                // Decision example
                try {
                        UUID requestID = UUID.randomUUID();
+                       @SuppressWarnings("deprecation")
                        DecisionResponse policyDecision = policyEngine.getDecision(
                                        eCOMPComponentName, decisionAttributes, requestID);
                        resultReceived.add(policyDecision.getDecision().toString());
                } catch (PolicyDecisionException e) {
-//                     e.printStackTrace();
+//                     logger.error("Exception Occured"+e);
                        resultReceived.add(""+e);
                }
                return resultReceived;
@@ -140,6 +142,7 @@ public class PolicyEngineTestClient {
                ArrayList<String> resultReceived = new ArrayList<String>();
                try {
                        UUID requestID = UUID.randomUUID();
+                       @SuppressWarnings("deprecation")
                        Collection<PolicyResponse> policyResponses = policyEngine
                                        .sendEvent(eventAttributes, requestID);
                        if (policyResponses != null && !policyResponses.isEmpty()) {
@@ -151,7 +154,7 @@ public class PolicyEngineTestClient {
                                }
                        }
                } catch (PolicyEventException e) {
-//                     e.printStackTrace();
+//                     logger.error("Exception Occured"+e);
                        resultReceived.add(""+e);
                }
                return resultReceived;