ottlinger commented on code in PR #195: URL: https://github.com/apache/creadur-rat/pull/195#discussion_r1451628255
########## apache-rat-core/src/test/java/org/apache/rat/walker/DirectoryWalkerTest.java: ########## @@ -25,28 +25,41 @@ import org.apache.rat.api.Document; import org.apache.rat.api.RatException; import org.apache.rat.report.RatReport; -import org.junit.Assert; -import org.junit.Rule; -import org.junit.Test; -import org.junit.rules.TemporaryFolder; +import org.junit.jupiter.api.AfterEach; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; + +import org.apache.commons.io.FileUtils; + +import static org.junit.jupiter.api.Assertions.assertEquals; import java.io.File; import java.io.FileWriter; import java.io.IOException; import java.nio.file.Files; +import java.nio.file.Path; import java.nio.file.attribute.DosFileAttributeView; import java.nio.file.attribute.DosFileAttributes; import java.util.ArrayList; import java.util.List; public class DirectoryWalkerTest { + + private File toWalk; + + @BeforeEach + public void setup() throws IOException { + toWalk = Files.createTempDirectory("dwt").toFile(); + } + + @AfterEach + public void teardown() throws IOException { + FileUtils.deleteDirectory(toWalk); + } Review Comment: I'd prefer @TempDir here as well ..... -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@creadur.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org