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
This commit is contained in:
Yonik Seeley 2009-10-21 14:01:06 +00:00
parent a5f723c1af
commit ede4df7add
1 changed files with 2 additions and 5 deletions

View File

@ -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);
}