From 31c9fe30b5cc64354ac4d5c0cf9c02efc66d888b Mon Sep 17 00:00:00 2001 From: Parshad Patel Date: Mon, 18 Feb 2019 18:55:32 +0900 Subject: 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 --- .../test/java/org/openecomp/sdc/asdctool/impl/ProductLogicTest.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'asdctool/src/test') 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 +} -- cgit 1.2.3-korg