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 --- .../policy/pap/ia/DbAuditCompareEntriesTest.java | 36 +++++++++++----------- 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'ECOMP-PAP-REST/src/test/java/org/openecomp/policy/pap/ia/DbAuditCompareEntriesTest.java') diff --git a/ECOMP-PAP-REST/src/test/java/org/openecomp/policy/pap/ia/DbAuditCompareEntriesTest.java b/ECOMP-PAP-REST/src/test/java/org/openecomp/policy/pap/ia/DbAuditCompareEntriesTest.java index 6ab3d3588..d3b5cbbea 100644 --- a/ECOMP-PAP-REST/src/test/java/org/openecomp/policy/pap/ia/DbAuditCompareEntriesTest.java +++ b/ECOMP-PAP-REST/src/test/java/org/openecomp/policy/pap/ia/DbAuditCompareEntriesTest.java @@ -181,8 +181,8 @@ public class DbAuditCompareEntriesTest { dbAudit.writeAuditDebugLog(className, resourceName1, resourceName2, entry1, entry2); - HashMap myEntries = new HashMap(); - HashMap theirEntries = new HashMap(); + HashMap myEntries = new HashMap<>(); + HashMap theirEntries = new HashMap<>(); myEntries.put("pdp1", entry1); theirEntries.put("pdp1", entry2); @@ -205,8 +205,8 @@ public class DbAuditCompareEntriesTest { */ entry2.setDesignated(true); - myEntries = new HashMap(); - theirEntries = new HashMap(); + myEntries = new HashMap<>(); + theirEntries = new HashMap<>(); myEntries.put("pdp1", entry1); theirEntries.put("pdp1", entry2); @@ -240,8 +240,8 @@ public class DbAuditCompareEntriesTest { // Clone the first entry entry2 = SerializationUtils.clone(entry1); - HashMap myEntries = new HashMap(); - HashMap theirEntries = new HashMap(); + HashMap myEntries = new HashMap<>(); + HashMap theirEntries = new HashMap<>(); myEntries.put("pdp1", entry1); theirEntries.put("pdp1", entry2); @@ -264,8 +264,8 @@ public class DbAuditCompareEntriesTest { entry2.setFlag("flag2"); - myEntries = new HashMap(); - theirEntries = new HashMap(); + myEntries = new HashMap<>(); + theirEntries = new HashMap<>(); myEntries.put("pdp1", entry1); theirEntries.put("pdp1", entry2); @@ -300,8 +300,8 @@ public class DbAuditCompareEntriesTest { // Clone the first entry entry2 = SerializationUtils.clone(entry1); - HashMap myEntries = new HashMap(); - HashMap theirEntries = new HashMap(); + HashMap myEntries = new HashMap<>(); + HashMap theirEntries = new HashMap<>(); myEntries.put("pdp1", entry1); theirEntries.put("pdp1", entry2); @@ -324,8 +324,8 @@ public class DbAuditCompareEntriesTest { entry2.setAdminState("unlocked"); - myEntries = new HashMap(); - theirEntries = new HashMap(); + myEntries = new HashMap<>(); + theirEntries = new HashMap<>(); myEntries.put("pdp1", entry1); theirEntries.put("pdp1", entry2); @@ -379,8 +379,8 @@ public class DbAuditCompareEntriesTest { entry2.setFpcCount(321L); - myEntries = new HashMap(); - theirEntries = new HashMap(); + myEntries = new HashMap<>(); + theirEntries = new HashMap<>(); myEntries.put("pdp1", entry1); theirEntries.put("pdp1", entry2); @@ -414,8 +414,8 @@ public class DbAuditCompareEntriesTest { // Clone the first entry entry2 = SerializationUtils.clone(entry1); - HashMap myEntries = new HashMap(); - HashMap theirEntries = new HashMap(); + HashMap myEntries = new HashMap<>(); + HashMap theirEntries = new HashMap<>(); myEntries.put("pdp1", entry1); theirEntries.put("pdp1", entry2); @@ -436,8 +436,8 @@ public class DbAuditCompareEntriesTest { entry2.setSite("site_1a"); - myEntries = new HashMap(); - theirEntries = new HashMap(); + myEntries = new HashMap<>(); + theirEntries = new HashMap<>(); myEntries.put("pdp1", entry1); theirEntries.put("pdp1", entry2); -- cgit 1.2.3-korg