From ede4df7addd4b139aa18a9cf991576408674628c Mon Sep 17 00:00:00 2001 From: Yonik Seeley Date: Wed, 21 Oct 2009 14:01:06 +0000 Subject: [PATCH] do not directly instantiate junit test cases git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@828018 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/solr/client/solrj/TestLBHttpSolrServer.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/test/org/apache/solr/client/solrj/TestLBHttpSolrServer.java b/src/test/org/apache/solr/client/solrj/TestLBHttpSolrServer.java index 02ba8dff83a..dfd94b651c9 100644 --- a/src/test/org/apache/solr/client/solrj/TestLBHttpSolrServer.java +++ b/src/test/org/apache/solr/client/solrj/TestLBHttpSolrServer.java @@ -148,10 +148,10 @@ public class TestLBHttpSolrServer extends TestCase { 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 @@ public class TestLBHttpSolrServer extends TestCase { 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 @@ public class TestLBHttpSolrServer extends TestCase { 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 @@ public class TestLBHttpSolrServer extends TestCase { jetty.stop(); } catch (Exception e) { } - super.tearDown(); AbstractSolrTestCase.recurseDelete(homeDir); }