summaryrefslogtreecommitdiffstats
path: root/asdctool/src/test
diff options
context:
space:
mode:
authorsebdet <sebastien.determe@intl.att.com>2020-06-24 11:32:27 +0200
committerOfir Sonsino <ofir.sonsino@intl.att.com>2020-07-05 08:46:33 +0000
commit3d6e3667d00c45585421dade93b00de174144cca (patch)
treee2df7cb848e5efddfdc79ab045119cfc505f59ad /asdctool/src/test
parent0bea1a6770a361820e7332766e10683a86687698 (diff)
Fix sonar issues
Fix sonar/checkstyle issues in sdc code Issue-ID: SDC-3158 Change-Id: Ic29f9233838e25c195d2b349bfac8e6d56888609 Signed-off-by: sebdet <sebastien.determe@intl.att.com>
Diffstat (limited to 'asdctool/src/test')
-rw-r--r--asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/RestUtilsTest.java10
1 files changed, 8 insertions, 2 deletions
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));
}
}