File tree 1 file changed +2
-3
lines changed
surefire-booter/src/test/java/org/apache/maven/surefire/booter 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 25
25
import java .lang .management .ThreadInfo ;
26
26
import java .lang .management .ThreadMXBean ;
27
27
import java .nio .charset .StandardCharsets ;
28
+ import java .nio .file .Files ;
28
29
import java .util .ArrayList ;
29
30
import java .util .Collection ;
30
31
import java .util .concurrent .ScheduledExecutorService ;
@@ -76,9 +77,7 @@ public void shouldNotBeDebugMode() throws Exception {
76
77
77
78
@ Test
78
79
public void shouldReadSurefireProperties () throws Exception {
79
- File target = new File (System .getProperty ("user.dir" , "target" ));
80
- File tmpDir = new File (target , "ForkedBooterTest.1" );
81
- assertThat (tmpDir .mkdirs ()).isTrue ();
80
+ File tmpDir = Files .createTempDirectory ("ForkedBooterTest.1." ).toFile ();
82
81
83
82
try {
84
83
try (InputStream is = invokeMethod (
You can’t perform that action at this time.
0 commit comments