From 7e7d438e3ba30cc59e65dee019673e90058e1a60 Mon Sep 17 00:00:00 2001 From: Matthias Ronge Date: Wed, 7 Feb 2024 15:49:07 +0100 Subject: [PATCH] Rearrange function calls and checks The order of execution of the underlying tasks depends on the order in which they are found on the disk and is unpredictable. Reliable testing is only possible after the end of this group of tasks. --- .../production/services/command/ImportProcessesIT.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Kitodo/src/test/java/org/kitodo/production/services/command/ImportProcessesIT.java b/Kitodo/src/test/java/org/kitodo/production/services/command/ImportProcessesIT.java index 6ff55559963..b04702b4b83 100644 --- a/Kitodo/src/test/java/org/kitodo/production/services/command/ImportProcessesIT.java +++ b/Kitodo/src/test/java/org/kitodo/production/services/command/ImportProcessesIT.java @@ -227,15 +227,15 @@ public void shouldImport() throws Exception { assertTrue("should have created process directory", Files.isDirectory(Paths.get("src/test/resources/metadata/4"))); underTest.run(12); + underTest.run(13); + underTest.run(14); + underTest.run(15); assertTrue("should have created images directory", Files.isDirectory(Paths.get("src/test/resources/metadata/4/images"))); - underTest.run(13); assertTrue("should have created media directory", Files.isDirectory(Paths.get("src/test/resources/metadata/4/images/17_123_0001_media"))); - underTest.run(14); assertTrue("should have copied media file", Files.exists(Paths.get("src/test/resources/metadata/4/images/17_123_0001_media/00000001.jpg"))); - underTest.run(15); assertTrue("should have written meta.xml file", Files.exists(Paths.get("src/test/resources/metadata/4/meta.xml"))); assertTrue("should have added image to meta.xml file",