mirror of https://github.com/apache/lucene.git
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:
parent
971fae640f
commit
f8c39032e0
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue