mirror of https://github.com/apache/lucene.git
add super.setup/teardown
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@992623 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
6ee1ac44ee
commit
175f026bbb
|
@ -48,6 +48,7 @@ public class TestLBHttpSolrServer extends LuceneTestCase {
|
|||
HttpClient httpClient = new HttpClient();
|
||||
|
||||
public void setUp() throws Exception {
|
||||
super.setUp();
|
||||
for (int i = 0; i < solr.length; i++) {
|
||||
solr[i] = new SolrInstance("solr" + i, 0);
|
||||
solr[i].setUp();
|
||||
|
@ -76,6 +77,7 @@ public class TestLBHttpSolrServer extends LuceneTestCase {
|
|||
for (SolrInstance aSolr : solr) {
|
||||
aSolr.tearDown();
|
||||
}
|
||||
super.tearDown();
|
||||
}
|
||||
|
||||
public void testSimple() throws Exception {
|
||||
|
|
|
@ -45,6 +45,7 @@ public class JettyWebappTest extends LuceneTestCase
|
|||
@Override
|
||||
public void setUp() throws Exception
|
||||
{
|
||||
super.setUp();
|
||||
System.setProperty("solr.solr.home", "../../../example/solr");
|
||||
|
||||
File dataDir = new File(SolrTestCaseJ4.TEMP_DIR,
|
||||
|
@ -75,6 +76,7 @@ public class JettyWebappTest extends LuceneTestCase
|
|||
try {
|
||||
server.stop();
|
||||
} catch( Exception ex ) {}
|
||||
super.tearDown();
|
||||
}
|
||||
|
||||
public void testJSP() throws Exception
|
||||
|
|
|
@ -22,16 +22,18 @@ public class ModifiableSolrParamsTest extends LuceneTestCase
|
|||
{
|
||||
|
||||
@Override
|
||||
public void setUp()
|
||||
public void setUp() throws Exception
|
||||
{
|
||||
super.setUp();
|
||||
modifiable = new ModifiableSolrParams();
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void tearDown()
|
||||
public void tearDown() throws Exception
|
||||
{
|
||||
modifiable.clear();
|
||||
super.tearDown();
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue