mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[git tests] remove unnecessary try-finally
This commit is contained in:
@@ -53,32 +53,18 @@ abstract class GitPushOperationBaseTest extends GitPlatformTest {
|
||||
protected void setUp() throws Exception {
|
||||
super.setUp();
|
||||
|
||||
try {
|
||||
myOutside = IdeaTestFixtureFactory.getFixtureFactory().createTempDirTestFixture();
|
||||
myOutside.setUp();
|
||||
myExternalPath = myOutside.getTempDirPath();
|
||||
myPushSupport = findGitPushSupport();
|
||||
}
|
||||
catch (Exception e) {
|
||||
super.tearDown();
|
||||
throw e;
|
||||
}
|
||||
myOutside = IdeaTestFixtureFactory.getFixtureFactory().createTempDirTestFixture();
|
||||
myOutside.setUp();
|
||||
myExternalPath = myOutside.getTempDirPath();
|
||||
myPushSupport = findGitPushSupport();
|
||||
|
||||
try {
|
||||
GitTestUtil.overrideService(myProject, AbstractVcsHelper.class, MockVcsHelper.class); // todo temporary: to handle merge dialog
|
||||
}
|
||||
catch (Exception e) {
|
||||
tearDown();
|
||||
throw e;
|
||||
}
|
||||
GitTestUtil.overrideService(myProject, AbstractVcsHelper.class, MockVcsHelper.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void tearDown() throws Exception {
|
||||
try {
|
||||
if (myOutside != null) {
|
||||
myOutside.tearDown();
|
||||
}
|
||||
if (myOutside != null) myOutside.tearDown();
|
||||
}
|
||||
finally {
|
||||
super.tearDown();
|
||||
|
||||
Reference in New Issue
Block a user