We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31e1410 commit 419ad3eCopy full SHA for 419ad3e
1 file changed
src/test/java/org/apache/commons/io/testtools/FileBasedTestCase.java
@@ -17,6 +17,7 @@
17
package org.apache.commons.io.testtools;
18
19
import java.io.*;
20
+import static org.junit.Assert.fail;
21
22
/**
23
* Base class for testcases doing tests with files.
@@ -28,9 +29,12 @@ public abstract class FileBasedTestCase {
28
29
@SuppressWarnings("ResultOfMethodCallIgnored")
30
public static File getTestDirectory() {
31
if (testDir == null) {
- testDir = new File("test/io/").getAbsoluteFile();
32
+ testDir = new File("target/test_io/").getAbsoluteFile();
33
}
34
testDir.mkdirs();
35
+ if (!testDir.isDirectory()) {
36
+ fail("Could not create directory " + testDir);
37
+ }
38
return testDir;
39
40
0 commit comments