From a73217b479a500fb9420dbcb453a134ec8d1eee7 Mon Sep 17 00:00:00 2001 From: waynedunican Date: Fri, 14 Aug 2020 11:24:14 +0100 Subject: SONAR fixes - assert dissimiliar types Fix for assertions comparing dissimiliar types. Issue-ID: POLICY-2761 Change-Id: I1b2b8afa3e6308cda887d73a4ee079709847d054 Signed-off-by: waynedunican --- .../integration/executor/event/TestEventInstantiation.java | 7 ------- 1 file changed, 7 deletions(-) (limited to 'testsuites') 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()); -- cgit 1.2.3-korg