[TEST] make MockTermsLookupFetchService non static

This commit is contained in:
javanna 2015-08-26 15:56:47 +02:00 committed by Luca Cavanna
parent 94dd6c5f0e
commit 350cba98cf
1 changed files with 4 additions and 4 deletions

View File

@ -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<TermsQueryBuilder> {
private static MockTermsLookupFetchService termsLookupFetchService;
private MockTermsLookupFetchService termsLookupFetchService;
@BeforeClass
public static void mockTermsLookupFetchService() throws IOException {
@Before
public void mockTermsLookupFetchService() {
termsLookupFetchService = new MockTermsLookupFetchService();
queryParserService().setTermsLookupFetchService(termsLookupFetchService);
}