Reducing onboarding backend maven build time
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / java / org / openecomp / sdc / translator / services / heattotosca / impl / resourcetranslation / BaseFullTranslationTest.java
index 0533961..c4a83e0 100644 (file)
@@ -127,6 +127,7 @@ public class BaseFullTranslationTest {
       }
     }
     assertEquals(0, expectedResultFileNameSet.size());
+    translatedZipFile.delete();
   }
 
   private File translateZipFile(String basePath, HeatToToscaTranslator heatToToscaTranslator) throws IOException {
@@ -143,8 +144,7 @@ public class BaseFullTranslationTest {
           .withId("Validation Error").withCategory(ErrorCategory.APPLICATION).build());
     }
 
-    File file = new File(path + "/VSP.zip");
-    file.createNewFile();
+    File file = File.createTempFile("VSP", "zip");
 
     try (FileOutputStream fos = new FileOutputStream(file)) {
       ToscaFileOutputService toscaFileOutputService = new ToscaFileOutputServiceCsarImpl();