File tree Expand file tree Collapse file tree
src/test/java/org/apache/commons/io Expand file tree Collapse file tree Original file line number Diff line number Diff line change 100100import org .junit .jupiter .api .condition .EnabledIf ;
101101import org .junit .jupiter .api .condition .EnabledOnOs ;
102102import org .junit .jupiter .api .condition .OS ;
103+ import org .junit .jupiter .api .io .TempDir ;
103104import org .junit .jupiter .params .ParameterizedTest ;
104105import org .junit .jupiter .params .provider .ValueSource ;
105106
@@ -1952,8 +1953,8 @@ void testGetUserDirectoryPath() {
19521953 }
19531954
19541955 @ Test
1955- void testIO276 () throws Exception {
1956- final File dir = new File ("target" , "IO276" );
1956+ void testIO276 (@ TempDir File dest ) throws Exception {
1957+ final File dir = new File (dest , "IO276" );
19571958 Files .deleteIfExists (dir .toPath ());
19581959 assertTrue (dir .mkdirs (), dir + " should not be present" );
19591960 final File file = new File (dir , "IO276.txt" );
You can’t perform that action at this time.
0 commit comments