diff options
author | Vitaly Takmazov | 2021-10-23 11:10:19 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2021-10-23 11:26:43 +0300 |
commit | 8f96d329454c3343d4177364c12c087bf1147a7d (patch) | |
tree | 68d46609ec48f8154ea886cd2a9542ca3c422394 /src/test/java/com/juick | |
parent | 6b5d0deb398b0b77c13c16fbf116b4639feef574 (diff) |
Minor code cleanup
Diffstat (limited to 'src/test/java/com/juick')
-rw-r--r-- | src/test/java/com/juick/server/tests/ServerTests.java | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/test/java/com/juick/server/tests/ServerTests.java b/src/test/java/com/juick/server/tests/ServerTests.java index 479a1fc6..267ab9f8 100644 --- a/src/test/java/com/juick/server/tests/ServerTests.java +++ b/src/test/java/com/juick/server/tests/ServerTests.java @@ -370,13 +370,7 @@ public class ServerTests { @BeforeEach public void setUp() throws Exception { String imgDir = storageService.getImageDirectory(); - FileSystemUtils.deleteRecursively(Paths.get(imgDir, "p")); - FileSystemUtils.deleteRecursively(Paths.get(imgDir, "photos-1024")); - FileSystemUtils.deleteRecursively(Paths.get(imgDir, "photos-512")); - FileSystemUtils.deleteRecursively(Paths.get(imgDir, "ps")); - FileSystemUtils.deleteRecursively(Paths.get(imgDir, "a")); - FileSystemUtils.deleteRecursively(Paths.get(imgDir, "ao")); - FileSystemUtils.deleteRecursively(Paths.get(imgDir, "as")); + FileSystemUtils.deleteRecursively(Paths.get(imgDir)); Files.createDirectories(Paths.get(imgDir)); Files.createDirectory(Paths.get(imgDir, "p")); Files.createDirectory(Paths.get(imgDir, "photos-1024")); @@ -402,10 +396,7 @@ public class ServerTests { @AfterEach public void teardown() throws IOException { String imgDir = storageService.getImageDirectory(); - FileSystemUtils.deleteRecursively(Paths.get(imgDir, "p")); - FileSystemUtils.deleteRecursively(Paths.get(imgDir, "photos-1024")); - FileSystemUtils.deleteRecursively(Paths.get(imgDir, "photos-512")); - FileSystemUtils.deleteRecursively(Paths.get(imgDir, "ps")); + FileSystemUtils.deleteRecursively(Paths.get(imgDir)); } @Test |