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 @After
public void tearDown() { public void tearDown() throws Exception {
super.tearDown();
licenseService.stop(); licenseService.stop();
} }
} }

View File

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

View File

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