fix test leak

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1483140 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2013-05-16 01:13:56 +00:00
parent 971fae640f
commit f8c39032e0
1 changed files with 10 additions and 0 deletions

View File

@ -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 {