Policy 1707 commit to LF
[policy/engine.git] / PolicyEngineAPI / src / test / java / org / openecomp / policy / std / test / Handler.java
index e1e398e..460fb88 100644 (file)
@@ -56,6 +56,7 @@ public class Handler implements NotificationHandler{
                                        // Checking the Name is correct or not. 
                                        try {
                                                PolicyEngine policyEngine = new PolicyEngine("config.properties");
+                                               @SuppressWarnings("deprecation")
                                                Collection<PolicyConfig> policyConfigs = policyEngine.getConfigByPolicyName(updatedPolicy.getPolicyName());
                                                for(PolicyConfig policyConfig: policyConfigs){
                                                        if(policyConfig.getPolicyConfigStatus().equals(PolicyConfigStatus.CONFIG_RETRIEVED)){
@@ -93,6 +94,7 @@ public class Handler implements NotificationHandler{
                                // Checking the Name is correct or not. 
                                try {
                                        PolicyEngine policyEngine = new PolicyEngine("config.properties");
+                                       @SuppressWarnings("deprecation")
                                        Collection<PolicyConfig> policyConfigs = policyEngine.getConfigByPolicyName(updatedPolicy.getPolicyName());
                                        for(PolicyConfig policyConfig: policyConfigs){
                                                if(policyConfig.getPolicyConfigStatus().equals(PolicyConfigStatus.CONFIG_RETRIEVED)){