From 3d6e3667d00c45585421dade93b00de174144cca Mon Sep 17 00:00:00 2001 From: sebdet Date: Wed, 24 Jun 2020 11:32:27 +0200 Subject: Fix sonar issues Fix sonar/checkstyle issues in sdc code Issue-ID: SDC-3158 Change-Id: Ic29f9233838e25c195d2b349bfac8e6d56888609 Signed-off-by: sebdet --- .../java/org/openecomp/sdc/asdctool/impl/RestUtilsTest.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'asdctool/src/test') diff --git a/asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/RestUtilsTest.java b/asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/RestUtilsTest.java index 90672734bd..4afa3a1df2 100644 --- a/asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/RestUtilsTest.java +++ b/asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/RestUtilsTest.java @@ -20,7 +20,10 @@ package org.openecomp.sdc.asdctool.impl; -import org.junit.Test; + +import org.apache.http.HttpStatus; +import static org.junit.jupiter.api.Assertions.assertEquals; +import org.junit.jupiter.api.Test; public class RestUtilsTest { @@ -39,6 +42,9 @@ public class RestUtilsTest { // default test testSubject = createTestSubject(); - result = testSubject.deleteProduct(productUid, beHost, bePort, adminUser); + assertEquals(Integer.valueOf(HttpStatus.SC_INTERNAL_SERVER_ERROR), testSubject.deleteProduct(productUid, + beHost, + bePort, + adminUser)); } } -- cgit 1.2.3-korg