Nik Everett 2016-12-21 13:39:28 -05:00
parent dec6fc2d40
commit 8aca504c86
1 changed files with 6 additions and 0 deletions

View File

@ -30,6 +30,7 @@ import org.elasticsearch.common.xcontent.json.JsonXContent;
import org.elasticsearch.search.SearchModule;
import org.elasticsearch.test.ESTestCase;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
@ -45,6 +46,11 @@ public class QueryParseContextTests extends ESTestCase {
xContentRegistry = new NamedXContentRegistry(new SearchModule(Settings.EMPTY, false, emptyList()).getNamedXContents());
}
@AfterClass
public static void cleanup() {
xContentRegistry = null;
}
private ThreadContext threadContext;
@Before