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);
|
Assert.assertEquals("solr0", name);
|
||||||
}
|
}
|
||||||
|
|
||||||
private class SolrInstance extends AbstractSolrTestCase {
|
private class SolrInstance {
|
||||||
|
|
||||||
String name;
|
String name;
|
||||||
File homeDir;
|
File homeDir;
|
||||||
|
File dataDir;
|
||||||
File confDir;
|
File confDir;
|
||||||
int port;
|
int port;
|
||||||
JettySolrRunner jetty;
|
JettySolrRunner jetty;
|
||||||
|
@ -169,7 +169,6 @@ public class TestLBHttpSolrServer extends TestCase {
|
||||||
return "http://localhost:" + port + "/solr";
|
return "http://localhost:" + port + "/solr";
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public String getSchemaFile() {
|
public String getSchemaFile() {
|
||||||
return "." + File.separator + "solr" + File.separator + "conf" + File.separator + "schema-replication1.xml";
|
return "." + File.separator + "solr" + File.separator + "conf" + File.separator + "schema-replication1.xml";
|
||||||
}
|
}
|
||||||
|
@ -182,7 +181,6 @@ public class TestLBHttpSolrServer extends TestCase {
|
||||||
return dataDir.toString();
|
return dataDir.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public String getSolrConfigFile() {
|
public String getSolrConfigFile() {
|
||||||
String fname = "";
|
String fname = "";
|
||||||
fname = "." + File.separator + "solr" + File.separator + "conf" + File.separator + "solrconfig-slave1.xml";
|
fname = "." + File.separator + "solr" + File.separator + "conf" + File.separator + "solrconfig-slave1.xml";
|
||||||
|
@ -215,7 +213,6 @@ public class TestLBHttpSolrServer extends TestCase {
|
||||||
jetty.stop();
|
jetty.stop();
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
}
|
}
|
||||||
super.tearDown();
|
|
||||||
AbstractSolrTestCase.recurseDelete(homeDir);
|
AbstractSolrTestCase.recurseDelete(homeDir);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue