aboutsummaryrefslogtreecommitdiffstats
path: root/testsuites/integration/integration-executor-test/src/test
diff options
context:
space:
mode:
authorwaynedunican <wayne.dunican@est.tech>2020-08-14 11:24:14 +0100
committerwaynedunican <wayne.dunican@est.tech>2020-08-17 14:13:13 +0100
commita73217b479a500fb9420dbcb453a134ec8d1eee7 (patch)
tree4f5055eb69f4df57015090cb2498e6045b8874ee /testsuites/integration/integration-executor-test/src/test
parent1798f96670cc2d182628332ffec5e012816c82ea (diff)
SONAR fixes - assert dissimiliar types
Fix for assertions comparing dissimiliar types. Issue-ID: POLICY-2761 Change-Id: I1b2b8afa3e6308cda887d73a4ee079709847d054 Signed-off-by: waynedunican <wayne.dunican@est.tech>
Diffstat (limited to 'testsuites/integration/integration-executor-test/src/test')
-rw-r--r--testsuites/integration/integration-executor-test/src/test/java/org/onap/policy/apex/testsuites/integration/executor/event/TestEventInstantiation.java7
1 files changed, 0 insertions, 7 deletions
diff --git a/testsuites/integration/integration-executor-test/src/test/java/org/onap/policy/apex/testsuites/integration/executor/event/TestEventInstantiation.java b/testsuites/integration/integration-executor-test/src/test/java/org/onap/policy/apex/testsuites/integration/executor/event/TestEventInstantiation.java
index ba4b225d2..75000883d 100644
--- a/testsuites/integration/integration-executor-test/src/test/java/org/onap/policy/apex/testsuites/integration/executor/event/TestEventInstantiation.java
+++ b/testsuites/integration/integration-executor-test/src/test/java/org/onap/policy/apex/testsuites/integration/executor/event/TestEventInstantiation.java
@@ -180,19 +180,15 @@ public class TestEventInstantiation {
assertEquals("This is a slogan", slogan2);
final byte mc21 = (byte) event.get("TestMatchCase");
- assertNotNull(mc21);
assertEquals(16, mc21);
final byte mc22 = (byte) event.get("TestMatchCase");
- assertNotNull(mc22);
assertEquals((byte) 16, mc22);
final long timestamp2 = (Long) event.get("TestTimestamp");
- assertNotNull(timestamp2);
assertEquals(timestamp2, timestamp1);
final double temp2 = (double) event.get("TestTemperature");
- assertNotNull(temp2);
assertEquals(123.456789, temp2, 0);
final Double temp3 = (Double) event.get("TestTemperature");
@@ -213,15 +209,12 @@ public class TestEventInstantiation {
assertEquals("This is a test slogan", slogan3);
final byte mc31 = (byte) event.get("TestMatchCase");
- assertNotNull(mc31);
assertEquals((byte) 123, mc31);
final long timestamp3 = (Long) event.get("TestTimestamp");
- assertNotNull(timestamp3);
assertEquals(timestamp3, aDate.getTime());
final double temp4 = (double) event.get("TestTemperature");
- assertNotNull(temp4);
assertEquals(34.5445667, temp4, 0);
logger.debug(event.toString());