From 917ebfc9561115b66b03a7bb2a1ade38d3667219 Mon Sep 17 00:00:00 2001 From: waynedunican Date: Thu, 3 Sep 2020 12:56:54 +0100 Subject: Sonar Bug fixes Removal of remaining bugs in apex-pdp Issue-ID: POLICY-2774 Change-Id: I370796e7c8a41c116155155c33176512e9e0cd91 Signed-off-by: waynedunican --- .../java/org/onap/policy/apex/core/protocols/SupportMessageTester.java | 2 +- .../onap/policy/apex/core/protocols/engdep/messages/ResponseTest.java | 2 +- .../policy/apex/core/protocols/engdep/messages/UpdateModelTest.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'core/core-protocols/src/test') diff --git a/core/core-protocols/src/test/java/org/onap/policy/apex/core/protocols/SupportMessageTester.java b/core/core-protocols/src/test/java/org/onap/policy/apex/core/protocols/SupportMessageTester.java index db13069f1..9c73be559 100644 --- a/core/core-protocols/src/test/java/org/onap/policy/apex/core/protocols/SupportMessageTester.java +++ b/core/core-protocols/src/test/java/org/onap/policy/apex/core/protocols/SupportMessageTester.java @@ -67,7 +67,7 @@ public class SupportMessageTester { // disabling sonar because this code tests the equals() method assertEquals(dummyMessage, dummyMessage); // NOSONAR assertNotNull(dummyMessage); - assertNotEquals(dummyMessage, new StartEngine(new AxArtifactKey())); + assertNotEquals(dummyMessage, (Object) new StartEngine(new AxArtifactKey())); dummyMessage = new DummyMessage(new DummyAction(null), null, null); DummyMessage otherDummyMessage = new DummyMessage(null, null, null); diff --git a/core/core-protocols/src/test/java/org/onap/policy/apex/core/protocols/engdep/messages/ResponseTest.java b/core/core-protocols/src/test/java/org/onap/policy/apex/core/protocols/engdep/messages/ResponseTest.java index 35fe5bb9f..ffaf07a00 100644 --- a/core/core-protocols/src/test/java/org/onap/policy/apex/core/protocols/engdep/messages/ResponseTest.java +++ b/core/core-protocols/src/test/java/org/onap/policy/apex/core/protocols/engdep/messages/ResponseTest.java @@ -76,7 +76,7 @@ public class ResponseTest { // disabling sonar because this code tests the equals() method assertEquals(message, message); // NOSONAR assertNotNull(message); - assertNotEquals(message, new StartEngine(new AxArtifactKey())); + assertNotEquals(message, (Object) new StartEngine(new AxArtifactKey())); message = new Response(null, false, responseTo); Response otherMessage = new Response(null, false, null); diff --git a/core/core-protocols/src/test/java/org/onap/policy/apex/core/protocols/engdep/messages/UpdateModelTest.java b/core/core-protocols/src/test/java/org/onap/policy/apex/core/protocols/engdep/messages/UpdateModelTest.java index 13d37a8f6..b2822ba93 100644 --- a/core/core-protocols/src/test/java/org/onap/policy/apex/core/protocols/engdep/messages/UpdateModelTest.java +++ b/core/core-protocols/src/test/java/org/onap/policy/apex/core/protocols/engdep/messages/UpdateModelTest.java @@ -72,7 +72,7 @@ public class UpdateModelTest { // disabling sonar because this code tests the equals() method assertEquals(message, message); // NOSONAR assertNotNull(message); - assertNotEquals(message, new StartEngine(new AxArtifactKey())); + assertNotEquals(message, (Object) new StartEngine(new AxArtifactKey())); message = new UpdateModel(null, null, false, false); UpdateModel otherMessage = new UpdateModel(null, null, false, false); -- cgit 1.2.3-korg