mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[git tests] Don't call tearDown if fixture is not initialized yet
Prefer super.tearDown in this case, otherwise fixture.tearDown will complain that it wasn't setUp yet.
This commit is contained in:
@@ -81,7 +81,13 @@ public abstract class GitPlatformTest extends UsefulTestCase {
|
||||
try {
|
||||
myProjectFixture = IdeaTestFixtureFactory.getFixtureFactory().createFixtureBuilder(getTestName(true)).getFixture();
|
||||
myProjectFixture.setUp();
|
||||
}
|
||||
catch (Exception e) {
|
||||
super.tearDown();
|
||||
throw e;
|
||||
}
|
||||
|
||||
try {
|
||||
myProject = myProjectFixture.getProject();
|
||||
myProjectRoot = myProject.getBaseDir();
|
||||
myProjectPath = myProjectRoot.getPath();
|
||||
|
||||
Reference in New Issue
Block a user