summaryrefslogtreecommitdiffstats
path: root/openecomp-be/lib/openecomp-tosca-lib/src
diff options
context:
space:
mode:
Diffstat (limited to 'openecomp-be/lib/openecomp-tosca-lib/src')
-rw-r--r--openecomp-be/lib/openecomp-tosca-lib/src/test/java/org/openecomp/sdc/tosca/services/impl/ToscaFileOutputServiceCsarImplTest.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/openecomp-be/lib/openecomp-tosca-lib/src/test/java/org/openecomp/sdc/tosca/services/impl/ToscaFileOutputServiceCsarImplTest.java b/openecomp-be/lib/openecomp-tosca-lib/src/test/java/org/openecomp/sdc/tosca/services/impl/ToscaFileOutputServiceCsarImplTest.java
index 66dda12b4b..0910684f3a 100644
--- a/openecomp-be/lib/openecomp-tosca-lib/src/test/java/org/openecomp/sdc/tosca/services/impl/ToscaFileOutputServiceCsarImplTest.java
+++ b/openecomp-be/lib/openecomp-tosca-lib/src/test/java/org/openecomp/sdc/tosca/services/impl/ToscaFileOutputServiceCsarImplTest.java
@@ -41,11 +41,10 @@ import java.util.zip.ZipFile;
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" +
@@ -57,6 +56,8 @@ public class ToscaFileOutputServiceCsarImplTest {
@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");
@@ -133,6 +134,8 @@ public class ToscaFileOutputServiceCsarImplTest {
@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");