X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=models-interactions%2Fmodel-impl%2Fevents%2Fsrc%2Ftest%2Fjava%2Forg%2Fonap%2Fpolicy%2Fcontrolloop%2FControlLoopOperationTest.java;h=eaf4ea93ac26a52299025ca67e7f95d119f05b05;hb=59f4f54cdf4c1a5c155360239272da690e8c4a72;hp=eb1a351d1f7db22f1310ce93ad58d332e6c2d2fd;hpb=b150aa8197e8a21ab7ad4cf1d91cfa30f56fa3df;p=policy%2Fmodels.git diff --git a/models-interactions/model-impl/events/src/test/java/org/onap/policy/controlloop/ControlLoopOperationTest.java b/models-interactions/model-impl/events/src/test/java/org/onap/policy/controlloop/ControlLoopOperationTest.java index eb1a351d1..eaf4ea93a 100644 --- a/models-interactions/model-impl/events/src/test/java/org/onap/policy/controlloop/ControlLoopOperationTest.java +++ b/models-interactions/model-impl/events/src/test/java/org/onap/policy/controlloop/ControlLoopOperationTest.java @@ -2,7 +2,7 @@ * ============LICENSE_START======================================================= * controlloop * ================================================================================ - * Copyright (C) 2018-2019 AT&T Intellectual Property. All rights reserved. + * Copyright (C) 2018-2020 AT&T Intellectual Property. All rights reserved. * Modifications Copyright (C) 2019 Nordix Foundation. * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); @@ -35,11 +35,11 @@ public class ControlLoopOperationTest { public void test() { ControlLoopOperation operation = new ControlLoopOperation(); - assertEquals(operation, operation); - assertNotEquals(operation, new String()); + assertEquals(operation, (Object) operation); + assertNotEquals(operation, (Object) ""); assertNotEquals(operation, null); - assertTrue(operation.hashCode() != 0); + assertNotEquals(0, operation.hashCode()); assertTrue(operation.toString().startsWith("ControlLoopOperation")); assertNotNull(operation); @@ -68,7 +68,7 @@ public class ControlLoopOperationTest { operation.setTarget("target"); assertEquals("target", operation.getTarget()); - assertTrue(operation.hashCode() != 0); + assertNotEquals(0, operation.hashCode()); ControlLoopOperation operation2 = new ControlLoopOperation(operation); assertEquals(now, operation2.getEnd());