From 1b989198df02eaba53ef089be983ab91036e962e Mon Sep 17 00:00:00 2001 From: Sweidan Omar Date: Mon, 2 May 2022 10:04:13 +0000 Subject: [PATCH] git-tfs-id: [http://tfs.userrendszerhaz.hu:8080/tfs/DefaultCollection]$/MediaCube;C33267 --- .../server/steps/IntegrationTestStep.java | 21 +++++++++++-------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/server/user.jobengine.executors/src/user/jobengine/server/steps/IntegrationTestStep.java b/server/user.jobengine.executors/src/user/jobengine/server/steps/IntegrationTestStep.java index 317edfed..547b61a1 100644 --- a/server/user.jobengine.executors/src/user/jobengine/server/steps/IntegrationTestStep.java +++ b/server/user.jobengine.executors/src/user/jobengine/server/steps/IntegrationTestStep.java @@ -41,17 +41,18 @@ public class IntegrationTestStep extends JobStep { finishLatch.countDown(); }, "retrieve-ondemand.xml", "Test retrieve-ondemand", - ListUtils.asMap("globalRetrievePath", "file://10.11.1.100", "localRetrievePath", "/mediacube/data", "materialOutputFolder", "/", - "promoOutputFolder", "/", "advertisementOutputFolder", "/", "octopusOutputFolder", "/", "genericOutputFolder", "/", - "onlineOutputFolder", "/", "killDateDays", -1, "nexioAgency", "ARCHIVE_RESTORE", "nexioPort", 2098, "nexioUserName", "administrator", - "nexioPassword", "system", "archivedMedia", archivedMedia, "successRecipient", "vasary@elgekko.net", "houseId", - archivedMedia.getMedia().getHouseId(), "targetPathType", "0")); + ListUtils.asMap("globalRetrievePath", "file://10.11.1.100", "localRetrievePath", "/mediacube/data", + "materialOutputFolder", "/", "promoOutputFolder", "/", "advertisementOutputFolder", "/", + "octopusOutputFolder", "/", "genericOutputFolder", "/", "onlineOutputFolder", "/", + "killDateDays", -1, "nexioAgency", "ARCHIVE_RESTORE", "nexioPort", 2098, "nexioUserName", + "administrator", "nexioPassword", "system", "archivedMedia", archivedMedia, "successRecipient", + "vasary@elgekko.net", "houseId", archivedMedia.getMedia().getHouseId(), "targetPathType", "0")); finishLatch.await(); Path output = Paths.get("/mediacube/data", archivedMedia.getMedia().getHouseId(), archivedMedia.getMedia().getHouseId() + "-ARCH-" + archivedMedia.getMedia().getMediaFileRealName()); if (!output.toFile().exists()) - throw new Exception("File not exists: " + output); + throw new Exception("File does not exist: " + output); logger.info("_01_test_retrieve_ondemand SUCCESS"); } @@ -64,7 +65,7 @@ public class IntegrationTestStep extends JobStep { Path ouptput = Paths.get(input.getParent().toString(), outputName); Files.copy(input, ouptput); if (!ouptput.toFile().exists()) - throw new Exception("File not exists: " + ouptput); + throw new Exception("File does not exist: " + ouptput); ArchiveItem archiveItem = new ArchiveItem(); archiveItem.setMediaFile(ouptput.toString()); @@ -78,7 +79,8 @@ public class IntegrationTestStep extends JobStep { getEngine().submit(null, e -> { if (e.isRuntimeTerminated()) finishLatch.countDown(); - }, "archive-material.xml", "Test archive-material", ListUtils.asMap("archiveItem", archiveItem, "killDateDays", 0)); + }, "archive-material.xml", "Test archive-material", + ListUtils.asMap("archiveItem", archiveItem, "killDateDays", 0)); finishLatch.await(); if (!ItemManagerExtensions.isArchived(getManager(), ouptput)) @@ -98,7 +100,8 @@ public class IntegrationTestStep extends JobStep { getEngine().submit(null, e -> { if (e.isRuntimeTerminated()) finishLatch.countDown(); - }, "delete-materials.xml", "Test delete-materials", ListUtils.asMap("sourcePath", source, "skipArchiveCheck", true)); + }, "delete-materials.xml", "Test delete-materials", + ListUtils.asMap("sourcePath", source, "skipArchiveCheck", true)); finishLatch.await(); if (output.toFile().exists()) -- 2.54.0