sonar issue, Change the assertion arguments to not compare a primitive value 87/129887/1
authorGanesh <ganesh.c@samsung.com>
Tue, 12 Jul 2022 10:42:08 +0000 (16:12 +0530)
committerGanesh <ganesh.c@samsung.com>
Tue, 12 Jul 2022 10:42:12 +0000 (16:12 +0530)
Signed-off-by: Ganesh <ganesh.c@samsung.com>
Change-Id: I1710ada880155d30582c0b9bcceb5f8152a32527
Issue-ID: SO-3966

adapters/mso-sdnc-adapter/src/test/java/org/onap/so/adapters/sdnc/sdncrest/BPRestCallbackTest.java

index ab782d4..557a67b 100644 (file)
@@ -24,6 +24,7 @@ import static com.github.tomakehurst.wiremock.client.WireMock.aResponse;
 import static com.github.tomakehurst.wiremock.client.WireMock.post;
 import static com.github.tomakehurst.wiremock.client.WireMock.urlPathEqualTo;
 import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertTrue;
 import static org.junit.Assert.assertNotNull;
 import org.apache.http.HttpStatus;
 import org.junit.Test;
@@ -48,6 +49,6 @@ public class BPRestCallbackTest extends BaseTest {
                         .withBody(response).withStatus(HttpStatus.SC_MULTIPLE_CHOICES)));
 
         boolean responseCommon = bpRestCallback.send("http://localhost:" + wireMockPort + "/sdnc", "Test");
-        assertEquals(true, responseCommon);
+        assertTrue(responseCommon);
     }
 }