From 157d511061bfa6f902e80aada08e59d70775cb1f Mon Sep 17 00:00:00 2001 From: Martijn van Groningen Date: Wed, 21 May 2014 22:08:28 +0200 Subject: [PATCH] [TEST] Use SuiteScopeTest annotation instead of ClusterScope(scope = ElasticsearchIntegrationTest.Scope.SUITE, numDataNodes = 1) --- .../search/aggregations/bucket/ReverseNestedTests.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/test/java/org/elasticsearch/search/aggregations/bucket/ReverseNestedTests.java b/src/test/java/org/elasticsearch/search/aggregations/bucket/ReverseNestedTests.java index b373d1a8a2c..f872f0bae7b 100644 --- a/src/test/java/org/elasticsearch/search/aggregations/bucket/ReverseNestedTests.java +++ b/src/test/java/org/elasticsearch/search/aggregations/bucket/ReverseNestedTests.java @@ -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.terms.Terms; import org.elasticsearch.test.ElasticsearchIntegrationTest; -import org.junit.Before; import org.junit.Test; 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 { - @Before - public void init() throws Exception { + public void setupSuiteScopeCluster() throws Exception { assertAcked(prepareCreate("idx") .addMapping( "type1",