mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
svn: Override temp directory in tests
To make project directories be created under per-test temp directory
This commit is contained in:
@@ -77,6 +77,8 @@ public abstract class SvnTestCase extends AbstractJunitVcsTestCase {
|
||||
}
|
||||
};
|
||||
|
||||
private static final String ORIGINAL_TEMP_DIRECTORY = getTempDirectory();
|
||||
|
||||
protected TempDirTestFixture myTempDirFixture;
|
||||
protected Url myRepositoryUrl;
|
||||
protected String myRepoUrl;
|
||||
@@ -121,6 +123,7 @@ public abstract class SvnTestCase extends AbstractJunitVcsTestCase {
|
||||
runInEdtAndWait(() -> {
|
||||
myTempDirFixture = IdeaTestFixtureFactory.getFixtureFactory().createTempDirTestFixture();
|
||||
myTempDirFixture.setUp();
|
||||
resetCanonicalTempPathCache(myTempDirFixture.getTempDirPath());
|
||||
|
||||
myPluginRoot = new File(getPluginHome());
|
||||
myClientBinaryPath = getSvnClientDirectory();
|
||||
@@ -211,6 +214,7 @@ public abstract class SvnTestCase extends AbstractJunitVcsTestCase {
|
||||
myTempDirFixture.tearDown();
|
||||
myTempDirFixture = null;
|
||||
}
|
||||
resetCanonicalTempPathCache(ORIGINAL_TEMP_DIRECTORY);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user