From 7cdb2b0e8a55d750104972b2ca2ae4ed51ae0aec Mon Sep 17 00:00:00 2001 From: Yuli Shlosberg Date: Wed, 29 Nov 2017 14:34:55 +0200 Subject: new Junit test Change-Id: I9a15d78ced6a10d2a79f08268a558f007bb22773 Issue-ID: SDC-695 Signed-off-by: Yuli Shlosberg --- .../java/org/openecomp/sdc/toscaparser/api/JToscaMetadataParse.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/test') diff --git a/src/test/java/org/openecomp/sdc/toscaparser/api/JToscaMetadataParse.java b/src/test/java/org/openecomp/sdc/toscaparser/api/JToscaMetadataParse.java index 79d166f..37292e5 100644 --- a/src/test/java/org/openecomp/sdc/toscaparser/api/JToscaMetadataParse.java +++ b/src/test/java/org/openecomp/sdc/toscaparser/api/JToscaMetadataParse.java @@ -32,10 +32,8 @@ public class JToscaMetadataParse { String fileStr = JToscaMetadataParse.class.getClassLoader().getResource("csars/tmpCSAR_Huawei_vSPGW_fixed.csar.csar").getFile(); File file = new File(fileStr); ToscaTemplate toscaTemplate = new ToscaTemplate(file.getAbsolutePath(), null, true, null); - - -// Collection issues = ThreadLocalsHolder.getCollector().getValidationIssues().values(); -// assertTrue(issues.size() == 0 ); + int validationIssuesCaught = ThreadLocalsHolder.getCollector().validationIssuesCaught(); + assertTrue(validationIssuesCaught == 0 ); } } -- cgit 1.2.3-korg