[TEST] remove unused ElasticsearchIntegrationTest#afterTestFailed method

This commit is contained in:
javanna 2015-04-20 16:48:47 +02:00 committed by Luca Cavanna
parent 0dad33f17f
commit 91afe64df7
3 changed files with 0 additions and 18 deletions

View File

@ -675,13 +675,6 @@ public abstract class ElasticsearchIntegrationTest extends ElasticsearchTestCase
}
}
/**
* Allows to execute some additional task after a test is failed, right after we cleared the clusters
*/
protected void afterTestFailed() {
}
public static TestCluster cluster() {
return currentCluster;
}

View File

@ -284,12 +284,6 @@ public abstract class ElasticsearchRestTestCase extends ElasticsearchIntegration
testCandidate.getTestSection().getSkipSection().skip(restTestExecutionContext.esVersion()));
}
@Override
protected void afterTestFailed() {
//after we reset the global cluster, we have to make sure the client gets re-initialized too
restTestExecutionContext.resetClient();
}
private static String buildSkipMessage(String description, SkipSection skipSection) {
StringBuilder messageBuilder = new StringBuilder();
if (skipSection.isVersionCheck()) {

View File

@ -125,11 +125,6 @@ public class RestTestExecutionContext implements Closeable {
}
}
public void resetClient() {
restClient.close();
restClient = null;
}
/**
* Clears the last obtained response and the stashed fields
*/