properly deal with overriding parent's tearDown method

Original commit: elastic/x-pack-elasticsearch@0edd4b1e20
This commit is contained in:
Boaz Leskes 2016-12-01 13:18:36 +01:00
parent 9e3ae67423
commit d881e4d9ad
3 changed files with 4 additions and 2 deletions

View File

@ -69,7 +69,8 @@ public abstract class AbstractLicenseServiceTestCase extends ESTestCase {
}
@After
public void tearDown() {
public void tearDown() throws Exception {
super.tearDown();
licenseService.stop();
}
}

View File

@ -62,7 +62,7 @@ public class HttpClientTests extends ESTestCase {
}
@After
public void shutDown() throws Exception {
public void shutdown() throws Exception {
webServer.shutdown();
}

View File

@ -150,6 +150,7 @@ public class SecurityIndexSearcherWrapperUnitTests extends ESTestCase {
@After
public void tearDown() throws Exception {
super.tearDown();
esIn.close();
}