X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=PolicyEngineUtils%2Fsrc%2Ftest%2Fjava%2Forg%2Fopenecomp%2Fpolicy%2Ftest%2FPolicyUtilsTest.java;h=42481036fb8a718e2ecc15b2ebf7f667227db2c9;hb=fc5c07705edc4dcb7083b39116a43844bb6a1490;hp=c3f8bedb0f7d0f1f1baba94d67d1d20e0869fa48;hpb=91d04c64771832a0b8815ffbe1f0f9920320d94d;p=policy%2Fengine.git diff --git a/PolicyEngineUtils/src/test/java/org/openecomp/policy/test/PolicyUtilsTest.java b/PolicyEngineUtils/src/test/java/org/openecomp/policy/test/PolicyUtilsTest.java index c3f8bedb0..42481036f 100644 --- a/PolicyEngineUtils/src/test/java/org/openecomp/policy/test/PolicyUtilsTest.java +++ b/PolicyEngineUtils/src/test/java/org/openecomp/policy/test/PolicyUtilsTest.java @@ -40,12 +40,10 @@ public class PolicyUtilsTest { @Test public void testJsonConversions() throws Exception{ - @SuppressWarnings("unused") - PolicyUtils policyUtils = new PolicyUtils(); StdPDPNotification notification = new StdPDPNotification(); notification.setNotificationType(NotificationType.BOTH); - Collection removedPolicies = new ArrayList(); - Collection loadedPolicies = new ArrayList(); + Collection removedPolicies = new ArrayList<>(); + Collection loadedPolicies = new ArrayList<>(); StdRemovedPolicy removedPolicy = new StdRemovedPolicy(); StdLoadedPolicy updatedPolicy = new StdLoadedPolicy(); removedPolicy.setPolicyName("Test"); @@ -54,7 +52,7 @@ public class PolicyUtilsTest { updatedPolicy.setPolicyName("Testing"); updatedPolicy.setVersionNo("1"); updatedPolicy.setUpdateType(UpdateType.NEW); - Map matches = new HashMap(); + Map matches = new HashMap<>(); matches.put("key", "value"); updatedPolicy.setMatches(matches); loadedPolicies.add(updatedPolicy);