test class depended on the order of method execution

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@992469 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2010-09-03 21:09:44 +00:00
parent 4794d1eb63
commit d735ea6e12
1 changed files with 9 additions and 0 deletions

View File

@ -35,6 +35,7 @@ import org.apache.solr.core.SolrCore;
import org.apache.solr.handler.component.QueryElevationComponent.ElevationObj;
import org.apache.solr.request.LocalSolrQueryRequest;
import org.apache.solr.request.SolrQueryRequest;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
@ -49,6 +50,14 @@ public class QueryElevationComponentTest extends SolrTestCaseJ4 {
initCore("solrconfig-elevate.xml","schema12.xml");
}
@Before
@Override
public void setUp() throws Exception {
super.setUp();
clearIndex();
assertU(commit());
}
@Test
public void testInterface() throws Exception
{