From 5a0e6a563d39e6a7b48d6c2ad261520f0c39cb55 Mon Sep 17 00:00:00 2001 From: shrek2000 Date: Sun, 31 Dec 2017 10:32:59 +0200 Subject: sonar issue fix - exception handling remove exception handling which does nothing to handle the error Issue-ID: SDC-835 Change-Id: I45e0bc203e15b41f907641bfda130f20e1f00f54 Signed-off-by: shrek2000 --- .../core/tools/Commands/exportinfo/serialize/VLMExtractTest.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'openecomp-be/tools/zusammen-tools/src/test/java') diff --git a/openecomp-be/tools/zusammen-tools/src/test/java/org/openecomp/core/tools/Commands/exportinfo/serialize/VLMExtractTest.java b/openecomp-be/tools/zusammen-tools/src/test/java/org/openecomp/core/tools/Commands/exportinfo/serialize/VLMExtractTest.java index 7b43c4624f..a5a1ff2cbc 100644 --- a/openecomp-be/tools/zusammen-tools/src/test/java/org/openecomp/core/tools/Commands/exportinfo/serialize/VLMExtractTest.java +++ b/openecomp-be/tools/zusammen-tools/src/test/java/org/openecomp/core/tools/Commands/exportinfo/serialize/VLMExtractTest.java @@ -33,11 +33,10 @@ public class VLMExtractTest { } - @Test + @Test(expectedExceptions = IllegalStateException.class) public void failToExtractVLMBecauseJsonIsCorrupted(){ String elemenet_info_string = "gfhhhghgh"; - String extractedVlmId = new CustomExportSerializer().extractVlm(elemenet_info_string); - assertNull(extractedVlmId); + new CustomExportSerializer().extractVlm(elemenet_info_string); } private static final class CustomExportSerializer extends ExportSerializer{ -- cgit 1.2.3-korg