From 87c95be02a8a4d77e165dede90777e811b59dcae Mon Sep 17 00:00:00 2001 From: Ravindra Bakkamanthala Date: Tue, 23 May 2017 14:56:12 -0400 Subject: Commit includes ControlLoopPolicy API and bugfixes Change-Id: I3e18bb8b4c31a0d908bb0cff4c85e2a3fb450a63 Signed-off-by: Ravindra Bakkamanthala --- .../java/org/openecomp/policyEngine/GeneralTestClient.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'PolicyEngineClient/src/main/java/org/openecomp/policyEngine/GeneralTestClient.java') diff --git a/PolicyEngineClient/src/main/java/org/openecomp/policyEngine/GeneralTestClient.java b/PolicyEngineClient/src/main/java/org/openecomp/policyEngine/GeneralTestClient.java index 6ca340efe..4298e8167 100644 --- a/PolicyEngineClient/src/main/java/org/openecomp/policyEngine/GeneralTestClient.java +++ b/PolicyEngineClient/src/main/java/org/openecomp/policyEngine/GeneralTestClient.java @@ -126,8 +126,8 @@ public class GeneralTestClient { for (Object jsonObject : jsonObjectArray) { totalTC++; totalTCforFile++; - ArrayList expectedResult = new ArrayList(); - ArrayList resultReceived = new ArrayList(); + ArrayList expectedResult = new ArrayList<>(); + ArrayList resultReceived = new ArrayList<>(); JSONObject testCase = (JSONObject) jsonObject; // get a String from the JSON object long id = (long) testCase.get("id"); @@ -155,7 +155,7 @@ public class GeneralTestClient { .get("ECOMPName"); String configName = (String) testCase .get("ConfigName"); - Map configAttributes = new HashMap(); + Map configAttributes = new HashMap<>(); configAttributes.put("key", "value"); JSONArray configAttributesJSON = (JSONArray) testCase .get("configAttributes"); @@ -191,7 +191,7 @@ public class GeneralTestClient { break; case "getAction": - Map eventAttributes = new HashMap(); + Map eventAttributes = new HashMap<>(); eventAttributes.put("Key", "Value"); JSONArray eventAttributesJSON = (JSONArray) testCase .get("eventAttributes"); @@ -228,7 +228,7 @@ public class GeneralTestClient { case "getDecision": eCOMPComponentName = (String) testCase .get("ECOMPName"); - Map decisionAttributes = new HashMap(); + Map decisionAttributes = new HashMap<>(); decisionAttributes.put("Key", "Value"); JSONArray decisionAttributesJSON = (JSONArray) testCase .get("decisionAttributes"); -- cgit 1.2.3-korg