[TEST] Use SuiteScopeTest annotation instead of ClusterScope(scope = ElasticsearchIntegrationTest.Scope.SUITE, numDataNodes = 1)

This commit is contained in:
Martijn van Groningen 2014-05-21 22:08:28 +02:00
parent f950344546
commit 157d511061
1 changed files with 2 additions and 4 deletions

View File

@ -25,7 +25,6 @@ import org.elasticsearch.search.aggregations.bucket.nested.Nested;
import org.elasticsearch.search.aggregations.bucket.nested.ReverseNested; import org.elasticsearch.search.aggregations.bucket.nested.ReverseNested;
import org.elasticsearch.search.aggregations.bucket.terms.Terms; import org.elasticsearch.search.aggregations.bucket.terms.Terms;
import org.elasticsearch.test.ElasticsearchIntegrationTest; import org.elasticsearch.test.ElasticsearchIntegrationTest;
import org.junit.Before;
import org.junit.Test; import org.junit.Test;
import java.util.ArrayList; import java.util.ArrayList;
@ -43,11 +42,10 @@ import static org.hamcrest.core.IsNull.notNullValue;
/** /**
* *
*/ */
@ElasticsearchIntegrationTest.ClusterScope(scope = ElasticsearchIntegrationTest.Scope.SUITE, numDataNodes = 1) @ElasticsearchIntegrationTest.SuiteScopeTest
public class ReverseNestedTests extends ElasticsearchIntegrationTest { public class ReverseNestedTests extends ElasticsearchIntegrationTest {
@Before public void setupSuiteScopeCluster() throws Exception {
public void init() throws Exception {
assertAcked(prepareCreate("idx") assertAcked(prepareCreate("idx")
.addMapping( .addMapping(
"type1", "type1",