From: Tufman, Shay (st198j) Date: Sun, 8 Jul 2018 12:28:17 +0000 (+0300) Subject: Add Unit test for Con level 9 X-Git-Tag: v1.4.1~1 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=470b614cd002e78155944b653ac1e2f974521079;p=sdc%2Fsdc-tosca.git Add Unit test for Con level 9 Change-Id: I62e843afcc5cdb53357705e2cf4515eee7175994 Issue-ID: SDC-1479 Signed-off-by: Tufman, Shay (st198j) --- diff --git a/src/test/java/org/onap/sdc/impl/ToscaParserErrorHandlingTest.java b/src/test/java/org/onap/sdc/impl/ToscaParserErrorHandlingTest.java index 1e0dd0a..0c80202 100644 --- a/src/test/java/org/onap/sdc/impl/ToscaParserErrorHandlingTest.java +++ b/src/test/java/org/onap/sdc/impl/ToscaParserErrorHandlingTest.java @@ -77,6 +77,15 @@ public class ToscaParserErrorHandlingTest extends SdcToscaParserBasicTest { Throwable captureThrowable = captureThrowable(file.getAbsolutePath()); assertNull(captureThrowable); } + + @Test + public void testVerifyConformanceLevelVersion9(){ + String csarPath = "csars/service-Servicetosca9-csar.csar"; + String fileLocationString = ToscaParserErrorHandlingTest.class.getClassLoader().getResource(csarPath).getFile(); + File file = new File(fileLocationString); + Throwable captureThrowable = captureThrowable(file.getAbsolutePath()); + assertNull(captureThrowable); + } @Test public void testFileNotFound(){ diff --git a/src/test/resources/csars/service-Servicetosca9-csar.csar b/src/test/resources/csars/service-Servicetosca9-csar.csar new file mode 100644 index 0000000..0627cfc Binary files /dev/null and b/src/test/resources/csars/service-Servicetosca9-csar.csar differ