lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hoss...@apache.org
Subject svn commit: r1567226 - /lucene/dev/trunk/solr/test-framework/src/java/org/apache/solr/util/RestTestBase.java
Date Tue, 11 Feb 2014 17:32:58 GMT
Author: hossman
Date: Tue Feb 11 17:32:57 2014
New Revision: 1567226

URL: http://svn.apache.org/r1567226
Log:
cleanup RestTestBase in @AfterClass

Modified:
    lucene/dev/trunk/solr/test-framework/src/java/org/apache/solr/util/RestTestBase.java

Modified: lucene/dev/trunk/solr/test-framework/src/java/org/apache/solr/util/RestTestBase.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/test-framework/src/java/org/apache/solr/util/RestTestBase.java?rev=1567226&r1=1567225&r2=1567226&view=diff
==============================================================================
--- lucene/dev/trunk/solr/test-framework/src/java/org/apache/solr/util/RestTestBase.java (original)
+++ lucene/dev/trunk/solr/test-framework/src/java/org/apache/solr/util/RestTestBase.java Tue
Feb 11 17:32:57 2014
@@ -33,10 +33,17 @@ import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 import org.xml.sax.SAXException;
 
+import org.junit.AfterClass;
+
 abstract public class RestTestBase extends SolrJettyTestBase {
   private static final Logger log = LoggerFactory.getLogger(RestTestBase.class);
   protected static RestTestHarness restTestHarness;
 
+  @AfterClass
+  public static void cleanUpHarness() {
+    restTestHarness = null;
+  }
+
   public static void createJettyAndHarness
       (String solrHome, String configFile, String schemaFile, String context,
        boolean stopAtShutdown, SortedMap<ServletHolder,String> extraServlets) throws
Exception {



Mime
View raw message