lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rm...@apache.org
Subject svn commit: r1483141 - in /lucene/dev/branches/branch_4x: ./ solr/ solr/core/ solr/core/src/test/org/apache/solr/update/processor/RegexBoostProcessorTest.java
Date Thu, 16 May 2013 01:15:11 GMT
Author: rmuir
Date: Thu May 16 01:15:11 2013
New Revision: 1483141

URL: http://svn.apache.org/r1483141
Log:
fix test leak

Modified:
    lucene/dev/branches/branch_4x/   (props changed)
    lucene/dev/branches/branch_4x/solr/   (props changed)
    lucene/dev/branches/branch_4x/solr/core/   (props changed)
    lucene/dev/branches/branch_4x/solr/core/src/test/org/apache/solr/update/processor/RegexBoostProcessorTest.java

Modified: lucene/dev/branches/branch_4x/solr/core/src/test/org/apache/solr/update/processor/RegexBoostProcessorTest.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/solr/core/src/test/org/apache/solr/update/processor/RegexBoostProcessorTest.java?rev=1483141&r1=1483140&r2=1483141&view=diff
==============================================================================
--- lucene/dev/branches/branch_4x/solr/core/src/test/org/apache/solr/update/processor/RegexBoostProcessorTest.java
(original)
+++ lucene/dev/branches/branch_4x/solr/core/src/test/org/apache/solr/update/processor/RegexBoostProcessorTest.java
Thu May 16 01:15:11 2013
@@ -24,6 +24,7 @@ import org.apache.solr.request.SolrQuery
 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 ext
     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 {



Mime
View raw message