diff --git a/solr/core/src/test/org/apache/solr/update/processor/RegexBoostProcessorTest.java b/solr/core/src/test/org/apache/solr/update/processor/RegexBoostProcessorTest.java index 2a1e0f39b9a..d757bd20ae4 100644 --- a/solr/core/src/test/org/apache/solr/update/processor/RegexBoostProcessorTest.java +++ b/solr/core/src/test/org/apache/solr/update/processor/RegexBoostProcessorTest.java @@ -24,6 +24,7 @@ import org.apache.solr.request.SolrQueryRequest; import org.apache.solr.response.SolrQueryResponse; import org.apache.solr.servlet.SolrRequestParsers; import org.apache.solr.update.AddUpdateCommand; +import org.junit.AfterClass; import org.junit.Before; import org.junit.BeforeClass; import org.junit.Test; @@ -50,6 +51,15 @@ public class RegexBoostProcessorTest extends SolrTestCaseJ4 { factory.init(parameters.toNamedList()); reProcessor = (RegexpBoostProcessor) factory.getInstance(req, resp, null); } + + @AfterClass + public static void tearDownAfterClass() throws Exception { + // null static members for gc + reProcessor = null; + _parser = null; + parameters = null; + factory = null; + } @Before public void setUp() throws Exception {