lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yo...@apache.org
Subject svn commit: r828018 - /lucene/solr/trunk/src/test/org/apache/solr/client/solrj/TestLBHttpSolrServer.java
Date Wed, 21 Oct 2009 14:01:06 GMT
Author: yonik
Date: Wed Oct 21 14:01:06 2009
New Revision: 828018

URL: http://svn.apache.org/viewvc?rev=828018&view=rev
Log:
do not directly instantiate junit test cases

Modified:
    lucene/solr/trunk/src/test/org/apache/solr/client/solrj/TestLBHttpSolrServer.java

Modified: lucene/solr/trunk/src/test/org/apache/solr/client/solrj/TestLBHttpSolrServer.java
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/src/test/org/apache/solr/client/solrj/TestLBHttpSolrServer.java?rev=828018&r1=828017&r2=828018&view=diff
==============================================================================
--- lucene/solr/trunk/src/test/org/apache/solr/client/solrj/TestLBHttpSolrServer.java (original)
+++ lucene/solr/trunk/src/test/org/apache/solr/client/solrj/TestLBHttpSolrServer.java Wed
Oct 21 14:01:06 2009
@@ -148,10 +148,10 @@
     Assert.assertEquals("solr0", name);
   }
 
-  private class SolrInstance extends AbstractSolrTestCase {
-
+  private class SolrInstance {
     String name;
     File homeDir;
+    File dataDir;
     File confDir;
     int port;
     JettySolrRunner jetty;
@@ -169,7 +169,6 @@
       return "http://localhost:" + port + "/solr";
     }
 
-    @Override
     public String getSchemaFile() {
       return "." + File.separator + "solr" + File.separator + "conf" + File.separator + "schema-replication1.xml";
     }
@@ -182,7 +181,6 @@
       return dataDir.toString();
     }
 
-    @Override
     public String getSolrConfigFile() {
       String fname = "";
       fname = "." + File.separator + "solr" + File.separator + "conf" + File.separator +
"solrconfig-slave1.xml";
@@ -215,7 +213,6 @@
         jetty.stop();
       } catch (Exception e) {
       }
-      super.tearDown();
       AbstractSolrTestCase.recurseDelete(homeDir);
     }
 



Mime
View raw message