public class ToscaFileOutputServiceCsarImplTest {
- private final ToscaFileOutputServiceCsarImpl toscaFileOutputServiceCSARImpl =
- new ToscaFileOutputServiceCsarImpl();
-
@Test
public void testCreationMetaFile() {
+ ToscaFileOutputServiceCsarImpl toscaFileOutputServiceCSARImpl =
+ new ToscaFileOutputServiceCsarImpl();
String createdMeta = toscaFileOutputServiceCSARImpl.createMetaFile("entryFile.yaml");
String expectedMeta =
"TOSCA-Meta-File-Version: 1.0\n" +
@Test
public void testCSARFileCreationWithExternalArtifacts() throws IOException {
+ ToscaFileOutputServiceCsarImpl toscaFileOutputServiceCSARImpl =
+ new ToscaFileOutputServiceCsarImpl();
ServiceTemplate mainServiceTemplate = new ServiceTemplate();
Map<String, String> metadata1 = new HashMap<>();
metadata1.put("Template_author", "OPENECOMP");
@Test
public void testCSARFileCreation_noArtifacts() throws IOException {
+ ToscaFileOutputServiceCsarImpl toscaFileOutputServiceCSARImpl =
+ new ToscaFileOutputServiceCsarImpl();
ServiceTemplate serviceTemplate = new ServiceTemplate();
Map<String, String> metadata = new HashMap<>();
metadata.put("Template_author", "OPENECOMP");