diff options
author | Abhai Singh <Abhai.Singh@amdocs.com> | 2018-01-11 16:56:57 +0530 |
---|---|---|
committer | Vitaly Emporopulo <Vitaliy.Emporopulo@amdocs.com> | 2018-01-11 12:21:29 +0000 |
commit | 9582973589fdb08f9e5869be13eadd171ed06598 (patch) | |
tree | 41a54bf001215b005d0471c3cd373181fcf964f3 /openecomp-be/lib/openecomp-tosca-lib/src/test | |
parent | fe9d4c4aa17182fb6dc7a9797364ba065973904f (diff) |
Fix ToscaFileOutputServiceCsarImplTest
Above mentioned test class has tests with shared state
and can fail unexpectedly during parallel execution.
Change-Id: I97772caaba60afca15f62166ba3b1c1d939bcc14
Issue-ID: SDC-904
Signed-off-by: Abhai Singh <Abhai.Singh@amdocs.com>
Diffstat (limited to 'openecomp-be/lib/openecomp-tosca-lib/src/test')
-rw-r--r-- | openecomp-be/lib/openecomp-tosca-lib/src/test/java/org/openecomp/sdc/tosca/services/impl/ToscaFileOutputServiceCsarImplTest.java | 9 |
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"); |