I\'m writing a test for a method that creates a file in a directory. Here\'s what my JUnit test looks like:
@Before public void setUp(){ objectUnderTes
I think the best approche is te delete after JVM exit :
Path tmp = Files.createTempDirectory(null); tmp.toFile().deleteOnExit();