From d735ea6e121a6568b228d3a97ca2a566beb1c866 Mon Sep 17 00:00:00 2001 From: Robert Muir Date: Fri, 3 Sep 2010 21:09:44 +0000 Subject: [PATCH] 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 --- .../handler/component/QueryElevationComponentTest.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/solr/src/test/org/apache/solr/handler/component/QueryElevationComponentTest.java b/solr/src/test/org/apache/solr/handler/component/QueryElevationComponentTest.java index 2ed52df9a7f..88a2533f2f6 100644 --- a/solr/src/test/org/apache/solr/handler/component/QueryElevationComponentTest.java +++ b/solr/src/test/org/apache/solr/handler/component/QueryElevationComponentTest.java @@ -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 {