summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGanesh <ganesh.c@samsung.com>2022-07-12 18:12:56 +0530
committerGanesh <ganesh.c@samsung.com>2022-07-12 18:12:58 +0530
commita313181a173ce8f15cf221ce1c888f9ea5b0f340 (patch)
tree45721dc1c41661c90a781945bd9b3a7dd4f3d307
parenta36c9fa4e1b78875aaf7e64ad3f7dd14bd93129a (diff)
sonar issue, Use assertNotEquals instead
Signed-off-by: Ganesh <ganesh.c@samsung.com> Change-Id: If257a5d048e0305112f66b2ee1be76714eadabf2 Issue-ID: SO-3966
-rw-r--r--adapters/mso-adapter-utils/src/test/java/org/onap/so/openstack/utils/MsoHeatEnvironmentResourceTest.java7
1 files 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());
}
}