git-tfs-id: [http://tfs.userrendszerhaz.hu:8080/tfs/DefaultCollection]$/MediaCube...
authorSweidan Omar <TFS\sweidan.omar>
Fri, 21 Jan 2022 08:52:34 +0000 (08:52 +0000)
committerSweidan Omar <TFS\sweidan.omar>
Fri, 21 Jan 2022 08:52:34 +0000 (08:52 +0000)
server/-product/production/MEDIAVIVANTIS/jobs/steps/IntegrationTestStep.java

index f2fb73c22bfffd889cf587f86c3734e436b19f57..910b7ed8e3724fdfd28eab3553b693f6e23d792d 100644 (file)
@@ -50,7 +50,7 @@ public class IntegrationTestStep extends JobStep {
                finishLatch.await();\r
                Path output = Paths.get("/mediacube/data", archivedMedia.getMedia().getHouseId(),\r
                                archivedMedia.getMedia().getHouseId() + "-ARCH-" + archivedMedia.getMedia().getMediaFileRealName());\r
-               if (!output.toFile().exists())\r
+               if (!File.exists(output))\r
                        throw new Exception("File not exists: " + output);\r
 \r
                logger.info("_01_test_retrieve_ondemand SUCCESS");\r
@@ -63,7 +63,7 @@ public class IntegrationTestStep extends JobStep {
                String outputName = "IntegrationTest_" + System.currentTimeMillis() + ".mxf";\r
                Path output = Paths.get(input.getParent().toString(), outputName);\r
                Files.copy(input, output);\r
-               if (!output.toFile().exists())\r
+               if (!Files.exists(output))\r
                        throw new Exception("File not exists: " + output);\r
 \r
                ArchiveItem archiveItem = new ArchiveItem();\r
@@ -101,7 +101,7 @@ public class IntegrationTestStep extends JobStep {
                }, "delete-materials.xml", "Test delete-materials", ListUtils.asMap("sourcePath", source, "skipArchiveCheck", true));\r
                finishLatch.await();\r
 \r
-               if (output.toFile().exists())\r
+               if (Files.exists(output))\r
                        throw new Exception("File exists: " + output);\r
        }\r
 \r