Skip to content

Commit

Permalink
Rearrange function calls and checks
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
matthias-ronge committed Feb 7, 2024
1 parent 90c8542 commit 7e7d438
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 7e7d438

Please sign in to comment.