[github-tests] Invoke general tearDown even if exception happened

This commit is contained in:
Kirill Likhodedov
2013-07-05 14:25:33 +04:00
parent 97219f59b3
commit 0a5c485667
2 changed files with 12 additions and 4 deletions
@@ -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 {