mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[github-tests] Invoke general tearDown even if exception happened
This commit is contained in:
@@ -39,8 +39,12 @@ public abstract class GithubCreateGistTestBase extends GithubTest {
|
||||
|
||||
@Override
|
||||
public void tearDown() throws Exception {
|
||||
deleteGist();
|
||||
super.tearDown();
|
||||
try {
|
||||
deleteGist();
|
||||
}
|
||||
finally {
|
||||
super.tearDown();
|
||||
}
|
||||
}
|
||||
|
||||
protected void deleteGist() throws IOException {
|
||||
|
||||
@@ -46,8 +46,12 @@ public abstract class GithubShareProjectTestBase extends GithubTest {
|
||||
|
||||
@Override
|
||||
public void tearDown() throws Exception {
|
||||
deleteGithubRepo();
|
||||
super.tearDown();
|
||||
try {
|
||||
deleteGithubRepo();
|
||||
}
|
||||
finally {
|
||||
super.tearDown();
|
||||
}
|
||||
}
|
||||
|
||||
protected void deleteGithubRepo() throws IOException {
|
||||
|
||||
Reference in New Issue
Block a user