-
- AaiArtifactGenerator generator = new AaiArtifactGenerator();
- GenerationData data = generator.generateArtifact(csar, ymlFiles, additionalParams);
-
- assertThat(data.getErrorData().size(), is(equalTo(0)));
- assertThat(data.getResultData().size(), is(equalTo(2)));
- }
-
- private byte[] loadResource(String resourceName) throws IOException {
- return IOUtils.toByteArray(TestToscaParser.class.getClassLoader().getResource(resourceName));
+ return new AaiArtifactGenerator().generateArtifact(CsarTest.VNF_VENDOR_CSAR.getContent(),
+ CsarTest.VNF_VENDOR_CSAR.extractArtifacts(), additionalParams);