mirror of https://github.com/apache/lucene.git
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:
parent
a5f723c1af
commit
ede4df7add
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue