-
- /**
- * Extract Artifacts from the specified CSAR resource.
- *
- * @param resourceName
- * the CSAR file
- * @return the extracted artifacts
- * @throws InvalidArchiveException
- * @throws IOException
- * for I/O errors
- */
- private List<Artifact> extractArchive(String resourceName) throws InvalidArchiveException, IOException {
- byte[] csar = new ArtifactTestUtils().getCompressedArtifact(resourceName);
- return new YamlExtractor().extract(csar, resourceName, "v1");
- }