From 470b614cd002e78155944b653ac1e2f974521079 Mon Sep 17 00:00:00 2001 From: "Tufman, Shay (st198j)" Date: Sun, 8 Jul 2018 15:28:17 +0300 Subject: Add Unit test for Con level 9 Change-Id: I62e843afcc5cdb53357705e2cf4515eee7175994 Issue-ID: SDC-1479 Signed-off-by: Tufman, Shay (st198j) --- .../org/onap/sdc/impl/ToscaParserErrorHandlingTest.java | 9 +++++++++ .../resources/csars/service-Servicetosca9-csar.csar | Bin 0 -> 32297 bytes 2 files changed, 9 insertions(+) create mode 100644 src/test/resources/csars/service-Servicetosca9-csar.csar (limited to 'src') 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 -- cgit