Update bunch files for KotlinTestUtils after 9dbeb79340
This commit is contained in:
@@ -406,12 +406,17 @@ public class KotlinTestUtils {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@NotNull
|
@NotNull
|
||||||
public static File tmpDirForTest(TestCase test) throws IOException {
|
public static File tmpDirForTest(@NotNull String testClassName, @NotNull String testName) throws IOException {
|
||||||
File answer = normalizeFile(FileUtil.createTempDirectory(test.getClass().getSimpleName(), test.getName()));
|
File answer = normalizeFile(FileUtil.createTempDirectory(testClassName, testName));
|
||||||
deleteOnShutdown(answer);
|
deleteOnShutdown(answer);
|
||||||
return answer;
|
return answer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@NotNull
|
||||||
|
public static File tmpDirForTest(TestCase test) throws IOException {
|
||||||
|
return tmpDirForTest(test.getClass().getSimpleName(), test.getName());
|
||||||
|
}
|
||||||
|
|
||||||
@NotNull
|
@NotNull
|
||||||
public static File tmpDir(String name) throws IOException {
|
public static File tmpDir(String name) throws IOException {
|
||||||
// We should use this form. otherwise directory will be deleted on each test.
|
// We should use this form. otherwise directory will be deleted on each test.
|
||||||
|
|||||||
@@ -406,12 +406,17 @@ public class KotlinTestUtils {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@NotNull
|
@NotNull
|
||||||
public static File tmpDirForTest(TestCase test) throws IOException {
|
public static File tmpDirForTest(@NotNull String testClassName, @NotNull String testName) throws IOException {
|
||||||
File answer = normalizeFile(FileUtil.createTempDirectory(test.getClass().getSimpleName(), test.getName()));
|
File answer = normalizeFile(FileUtil.createTempDirectory(testClassName, testName));
|
||||||
deleteOnShutdown(answer);
|
deleteOnShutdown(answer);
|
||||||
return answer;
|
return answer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@NotNull
|
||||||
|
public static File tmpDirForTest(TestCase test) throws IOException {
|
||||||
|
return tmpDirForTest(test.getClass().getSimpleName(), test.getName());
|
||||||
|
}
|
||||||
|
|
||||||
@NotNull
|
@NotNull
|
||||||
public static File tmpDir(String name) throws IOException {
|
public static File tmpDir(String name) throws IOException {
|
||||||
// We should use this form. otherwise directory will be deleted on each test.
|
// We should use this form. otherwise directory will be deleted on each test.
|
||||||
|
|||||||
@@ -406,12 +406,17 @@ public class KotlinTestUtils {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@NotNull
|
@NotNull
|
||||||
public static File tmpDirForTest(TestCase test) throws IOException {
|
public static File tmpDirForTest(@NotNull String testClassName, @NotNull String testName) throws IOException {
|
||||||
File answer = normalizeFile(FileUtil.createTempDirectory(test.getClass().getSimpleName(), test.getName()));
|
File answer = normalizeFile(FileUtil.createTempDirectory(testClassName, testName));
|
||||||
deleteOnShutdown(answer);
|
deleteOnShutdown(answer);
|
||||||
return answer;
|
return answer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@NotNull
|
||||||
|
public static File tmpDirForTest(TestCase test) throws IOException {
|
||||||
|
return tmpDirForTest(test.getClass().getSimpleName(), test.getName());
|
||||||
|
}
|
||||||
|
|
||||||
@NotNull
|
@NotNull
|
||||||
public static File tmpDir(String name) throws IOException {
|
public static File tmpDir(String name) throws IOException {
|
||||||
// We should use this form. otherwise directory will be deleted on each test.
|
// We should use this form. otherwise directory will be deleted on each test.
|
||||||
|
|||||||
Reference in New Issue
Block a user