diff options
author | 2020-08-07 09:51:52 +0100 | |
---|---|---|
committer | 2020-08-10 11:34:03 +0100 | |
commit | 09212e0d7326c2933ed437ee36188a241b8cf900 (patch) | |
tree | 03f33a3a95ab0aa086c38e22c1fd0ffdb715fa94 /core/core-engine/src/test/java/org/onap/policy/apex/core/engine/event/EnEventTest.java | |
parent | a926cdc113b5fad19a34dbf45e66bd7cbb5ed6e0 (diff) |
SONAR assertion cleanup
Replaced assertions to not have the same actual and expected expression
in apex-pdp
Issue-ID: POLICY-2761
Change-Id: I2bf45a3cc4411bd39f93f9d0b8c8e56dd318281e
Signed-off-by: waynedunican <wayne.dunican@est.tech>
Diffstat (limited to 'core/core-engine/src/test/java/org/onap/policy/apex/core/engine/event/EnEventTest.java')
-rw-r--r-- | core/core-engine/src/test/java/org/onap/policy/apex/core/engine/event/EnEventTest.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/core-engine/src/test/java/org/onap/policy/apex/core/engine/event/EnEventTest.java b/core/core-engine/src/test/java/org/onap/policy/apex/core/engine/event/EnEventTest.java index 6ac0d2e33..fa04f19b5 100644 --- a/core/core-engine/src/test/java/org/onap/policy/apex/core/engine/event/EnEventTest.java +++ b/core/core-engine/src/test/java/org/onap/policy/apex/core/engine/event/EnEventTest.java @@ -148,8 +148,8 @@ public class EnEventTest { assertNull(event.get("MyField")); assertNotEquals(0, event.hashCode()); - - assertEquals(event, event); + // disabling sonar because this code tests the equals() method + assertEquals(event, event); // NOSONAR assertNotNull(event); Map<String, Object> hashMap = new HashMap<>(); assertNotEquals(event, hashMap); |