aboutsummaryrefslogtreecommitdiffstats
path: root/openecomp-be/tools/zusammen-tools/src/test
diff options
context:
space:
mode:
authorshrek2000 <orenkle@amdocs.com>2017-12-31 10:32:59 +0200
committerVitaly Emporopulo <Vitaliy.Emporopulo@amdocs.com>2018-01-02 09:48:22 +0000
commit5a0e6a563d39e6a7b48d6c2ad261520f0c39cb55 (patch)
treeb5b36b7f78f8397dc136e37fdc10fb828e553f87 /openecomp-be/tools/zusammen-tools/src/test
parentda5dfcd1a354807d13849c7f4ead535ccfa722fa (diff)
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 <orenkle@amdocs.com>
Diffstat (limited to 'openecomp-be/tools/zusammen-tools/src/test')
-rw-r--r--openecomp-be/tools/zusammen-tools/src/test/java/org/openecomp/core/tools/Commands/exportinfo/serialize/VLMExtractTest.java5
1 files changed, 2 insertions, 3 deletions
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{