From 350cba98cfd1f794ed4206aff3434f9743d74719 Mon Sep 17 00:00:00 2001 From: javanna Date: Wed, 26 Aug 2015 15:56:47 +0200 Subject: [PATCH] [TEST] make MockTermsLookupFetchService non static --- .../elasticsearch/index/query/TermsQueryBuilderTest.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/src/test/java/org/elasticsearch/index/query/TermsQueryBuilderTest.java b/core/src/test/java/org/elasticsearch/index/query/TermsQueryBuilderTest.java index a5d2b1439c2..4019366e2f8 100644 --- a/core/src/test/java/org/elasticsearch/index/query/TermsQueryBuilderTest.java +++ b/core/src/test/java/org/elasticsearch/index/query/TermsQueryBuilderTest.java @@ -28,7 +28,7 @@ import org.elasticsearch.common.settings.Settings; import org.elasticsearch.index.search.termslookup.TermsLookupFetchService; import org.elasticsearch.indices.cache.query.terms.TermsLookup; import org.hamcrest.Matchers; -import org.junit.BeforeClass; +import org.junit.Before; import org.junit.Test; import java.io.IOException; @@ -40,10 +40,10 @@ import static org.hamcrest.Matchers.*; public class TermsQueryBuilderTest extends BaseQueryTestCase { - private static MockTermsLookupFetchService termsLookupFetchService; + private MockTermsLookupFetchService termsLookupFetchService; - @BeforeClass - public static void mockTermsLookupFetchService() throws IOException { + @Before + public void mockTermsLookupFetchService() { termsLookupFetchService = new MockTermsLookupFetchService(); queryParserService().setTermsLookupFetchService(termsLookupFetchService); }