Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions jpos/src/test/java/org/jpos/util/DirPollOperationTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.nio.file.Files;

import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
Expand Down Expand Up @@ -62,9 +63,7 @@ public void process(File name) {
}

private String createTempDir() throws IOException {
File temp = File.createTempFile("dir_poll", "tmp");
temp.delete(); // delete the file, we want a dir
temp.mkdirs();
File temp = Files.createTempDirectory("dir_poll" + "tmp").toFile();
return temp.getAbsolutePath();
}

Expand Down