From 38cf5fed407ed0aa5e7adb72c90b82bccccfe3e0 Mon Sep 17 00:00:00 2001 From: shrek2000 Date: Tue, 9 Jan 2018 16:00:28 +0200 Subject: Fail to Export VLM Timestamps had null value, invalid json caused exceptions Issue-ID: SDC-892 Change-Id: Iab117dd76cd51c3cd5fa62a59f55b18e265c58bf Signed-off-by: shrek2000 --- .../core/tools/Commands/exportinfo/serialize/VLMExtractTest.java | 6 +++--- 1 file changed, 3 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 a5a1ff2cbc..ed1ad2b2f4 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 @@ -36,12 +36,12 @@ public class VLMExtractTest { @Test(expectedExceptions = IllegalStateException.class) public void failToExtractVLMBecauseJsonIsCorrupted(){ String elemenet_info_string = "gfhhhghgh"; - new CustomExportSerializer().extractVlm(elemenet_info_string); + assertNull(new CustomExportSerializer().extractVlm(elemenet_info_string)); } private static final class CustomExportSerializer extends ExportSerializer{ - public String extractVlm(String injson) { - return super.extractVlm(injson); + public String extractVlm(String inJson) { + return super.extractVlm(inJson); } } } -- cgit 1.2.3-korg