summaryrefslogtreecommitdiffstats
path: root/asdctool/src/test/java/org
diff options
context:
space:
mode:
authorParshad Patel <pars.patel@samsung.com>2019-02-18 18:55:32 +0900
committerOfir Sonsino <ofir.sonsino@intl.att.com>2019-02-26 09:50:47 +0000
commit31c9fe30b5cc64354ac4d5c0cf9c02efc66d888b (patch)
treee777d1eaee1ac476c6c9e89f530eee6f2a3f1f09 /asdctool/src/test/java/org
parentc48ee4ae63dba6a1e6b7764e1894487447a68374 (diff)
Fix Blocker & Critical Sonar issues in asdctool
Fix NullPointerException issues Update test case Issue-ID: SDC-1895 Change-Id: I183b0bee127efa4331e79a1b76df558dbc9ca33a Signed-off-by: Parshad Patel <pars.patel@samsung.com>
Diffstat (limited to 'asdctool/src/test/java/org')
-rw-r--r--asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/ProductLogicTest.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/ProductLogicTest.java b/asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/ProductLogicTest.java
index 08de0eb951..982c85b060 100644
--- a/asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/ProductLogicTest.java
+++ b/asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/ProductLogicTest.java
@@ -1,5 +1,6 @@
package org.openecomp.sdc.asdctool.impl;
+import static org.junit.Assert.assertFalse;
import org.junit.Test;
public class ProductLogicTest {
@@ -8,7 +9,7 @@ public class ProductLogicTest {
return new ProductLogic();
}
- @Test(expected=NullPointerException.class)
+ @Test
public void testDeleteAllProducts() throws Exception {
ProductLogic testSubject;
String titanFile = "";
@@ -20,5 +21,6 @@ public class ProductLogicTest {
// default test
testSubject = createTestSubject();
result = testSubject.deleteAllProducts(titanFile, beHost, bePort, adminUser);
+ assertFalse(result);
}
-} \ No newline at end of file
+}