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:
Robert Muir 2010-09-04 15:13:05 +00:00
parent 6ee1ac44ee
commit 175f026bbb
3 changed files with 8 additions and 2 deletions

View File

@ -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 {

View File

@ -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

View File

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