sonar issue, Use assertNotEquals instead 90/129890/1
authorGanesh <ganesh.c@samsung.com>
Tue, 12 Jul 2022 12:42:56 +0000 (18:12 +0530)
committerGanesh <ganesh.c@samsung.com>
Tue, 12 Jul 2022 12:42:58 +0000 (18:12 +0530)
Signed-off-by: Ganesh <ganesh.c@samsung.com>
Change-Id: If257a5d048e0305112f66b2ee1be76714eadabf2
Issue-ID: SO-3966

adapters/mso-adapter-utils/src/test/java/org/onap/so/openstack/utils/MsoHeatEnvironmentResourceTest.java

index 2c67dfd..18372bb 100644 (file)
@@ -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());
     }
 }