Cleanup (shared constant used)

This commit is contained in:
Roman Shevchenko
2015-11-05 13:30:19 +01:00
parent 793a620603
commit fd0c554e3c
@@ -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();