From a313181a173ce8f15cf221ce1c888f9ea5b0f340 Mon Sep 17 00:00:00 2001 From: Ganesh Date: Tue, 12 Jul 2022 18:12:56 +0530 Subject: sonar issue, Use assertNotEquals instead Signed-off-by: Ganesh Change-Id: If257a5d048e0305112f66b2ee1be76714eadabf2 Issue-ID: SO-3966 --- .../onap/so/openstack/utils/MsoHeatEnvironmentResourceTest.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/adapters/mso-adapter-utils/src/test/java/org/onap/so/openstack/utils/MsoHeatEnvironmentResourceTest.java b/adapters/mso-adapter-utils/src/test/java/org/onap/so/openstack/utils/MsoHeatEnvironmentResourceTest.java index 2c67dfd009..18372bb8ea 100644 --- a/adapters/mso-adapter-utils/src/test/java/org/onap/so/openstack/utils/MsoHeatEnvironmentResourceTest.java +++ b/adapters/mso-adapter-utils/src/test/java/org/onap/so/openstack/utils/MsoHeatEnvironmentResourceTest.java @@ -16,8 +16,7 @@ package org.onap.so.openstack.utils; import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertFalse; -import static org.junit.Assert.assertTrue; +import static org.junit.Assert.assertNotEquals; import org.junit.Test; public class MsoHeatEnvironmentResourceTest { @@ -36,8 +35,8 @@ public class MsoHeatEnvironmentResourceTest { assertEquals("maeValue", mae.getValue()); assertEquals("\"msoHERName\": msoHERValue", msoHER.toString()); assertEquals("\"name\": maeValue", mae.toString()); - assertFalse(mae.equals(op)); - assertTrue(mae.equals(mre)); + assertNotEquals(mae, op); + assertEquals(mae, mre); assertEquals("name".hashCode(), mae.hashCode()); } } -- cgit 1.2.3-korg