You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by si...@apache.org on 2010/10/21 09:07:14 UTC
svn commit: r1025858 -
/lucene/dev/trunk/solr/src/test/org/apache/solr/handler/component/QueryElevationComponentTest.java
Author: simonw
Date: Thu Oct 21 07:07:13 2010
New Revision: 1025858
URL: http://svn.apache.org/viewvc?rev=1025858&view=rev
Log:
SOLR-2185: QueryElevationComponentTest depends on execution order
Modified:
lucene/dev/trunk/solr/src/test/org/apache/solr/handler/component/QueryElevationComponentTest.java
Modified: lucene/dev/trunk/solr/src/test/org/apache/solr/handler/component/QueryElevationComponentTest.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/src/test/org/apache/solr/handler/component/QueryElevationComponentTest.java?rev=1025858&r1=1025857&r2=1025858&view=diff
==============================================================================
--- lucene/dev/trunk/solr/src/test/org/apache/solr/handler/component/QueryElevationComponentTest.java (original)
+++ lucene/dev/trunk/solr/src/test/org/apache/solr/handler/component/QueryElevationComponentTest.java Thu Oct 21 07:07:13 2010
@@ -49,6 +49,15 @@ public class QueryElevationComponentTest
public static void beforeClass() throws Exception {
initCore("solrconfig-elevate.xml","schema12.xml");
}
+
+ @Before
+ @Override
+ public void setUp() throws Exception{
+ super.setUp();
+ clearIndex();
+ assertU(commit());
+ assertU(optimize());
+ }
@Test
public void testInterface() throws Exception