Update bunch files for KotlinTestUtils after 9dbeb79340

This commit is contained in:
Alexander Udalov
2018-05-17 12:43:30 +02:00
parent d7c77e522c
commit 598e89c03d
3 changed files with 21 additions and 6 deletions
@@ -406,12 +406,17 @@ public class KotlinTestUtils {
}
@NotNull
public static File tmpDirForTest(TestCase test) throws IOException {
File answer = normalizeFile(FileUtil.createTempDirectory(test.getClass().getSimpleName(), test.getName()));
public static File tmpDirForTest(@NotNull String testClassName, @NotNull String testName) throws IOException {
File answer = normalizeFile(FileUtil.createTempDirectory(testClassName, testName));
deleteOnShutdown(answer);
return answer;
}
@NotNull
public static File tmpDirForTest(TestCase test) throws IOException {
return tmpDirForTest(test.getClass().getSimpleName(), test.getName());
}
@NotNull
public static File tmpDir(String name) throws IOException {
// We should use this form. otherwise directory will be deleted on each test.
@@ -406,12 +406,17 @@ public class KotlinTestUtils {
}
@NotNull
public static File tmpDirForTest(TestCase test) throws IOException {
File answer = normalizeFile(FileUtil.createTempDirectory(test.getClass().getSimpleName(), test.getName()));
public static File tmpDirForTest(@NotNull String testClassName, @NotNull String testName) throws IOException {
File answer = normalizeFile(FileUtil.createTempDirectory(testClassName, testName));
deleteOnShutdown(answer);
return answer;
}
@NotNull
public static File tmpDirForTest(TestCase test) throws IOException {
return tmpDirForTest(test.getClass().getSimpleName(), test.getName());
}
@NotNull
public static File tmpDir(String name) throws IOException {
// We should use this form. otherwise directory will be deleted on each test.
@@ -406,12 +406,17 @@ public class KotlinTestUtils {
}
@NotNull
public static File tmpDirForTest(TestCase test) throws IOException {
File answer = normalizeFile(FileUtil.createTempDirectory(test.getClass().getSimpleName(), test.getName()));
public static File tmpDirForTest(@NotNull String testClassName, @NotNull String testName) throws IOException {
File answer = normalizeFile(FileUtil.createTempDirectory(testClassName, testName));
deleteOnShutdown(answer);
return answer;
}
@NotNull
public static File tmpDirForTest(TestCase test) throws IOException {
return tmpDirForTest(test.getClass().getSimpleName(), test.getName());
}
@NotNull
public static File tmpDir(String name) throws IOException {
// We should use this form. otherwise directory will be deleted on each test.