Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
RetGal committed Dec 24, 2023
1 parent 02483fb commit 9f94f51
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/test/java/mpo/dayon/common/utils/SystemUtilitiesTest.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package mpo.dayon.common.utils;

import static java.lang.String.format;
import static mpo.dayon.common.utils.SystemUtilities.*;
import static org.junit.jupiter.api.Assertions.*;

Expand All @@ -11,7 +10,6 @@
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.security.NoSuchAlgorithmException;

class SystemUtilitiesTest {
Expand Down Expand Up @@ -118,9 +116,9 @@ void shouldObtainWritableTempDir() throws IOException {
}

@Test
void shouldObtainJarDir() throws IOException {
void shouldObtainJarDir() {
// when, then
assertTrue(new File(format("%s%sdayon.jar", getJarDir(), File.separator)).exists(), "JarDir should contain dayon.jar");
assertTrue(Files.isDirectory(new File(getJarDir()).toPath()), "JarDir should be a directory");
}

}

0 comments on commit 9f94f51

Please sign in to comment.