mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Cleanup (shared constant used)
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
package com.intellij.testFramework.rules;
|
||||
|
||||
import com.intellij.openapi.util.io.FileUtil;
|
||||
import com.intellij.testFramework.UsefulTestCase;
|
||||
import org.junit.rules.TemporaryFolder;
|
||||
import org.junit.runner.Description;
|
||||
import org.junit.runners.model.Statement;
|
||||
@@ -44,7 +45,7 @@ public class TempDirectory extends TemporaryFolder {
|
||||
throw new IllegalStateException("apply() was not called");
|
||||
}
|
||||
|
||||
@SuppressWarnings("SSBasedInspection") File dir = File.createTempFile("junit_" + myName + "_", "");
|
||||
@SuppressWarnings("SSBasedInspection") File dir = File.createTempFile(UsefulTestCase.TEMP_DIR_MARKER + myName + "_", "");
|
||||
assertTrue("Cannot delete: " + dir.getPath(), dir.delete() || !dir.exists());
|
||||
assertTrue("Cannot create: " + dir.getPath(), dir.mkdir() || dir.isDirectory());
|
||||
myRoot = dir.getCanonicalFile();
|
||||
|
||||
Reference in New Issue
Block a user