You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by yo...@apache.org on 2012/03/19 21:20:33 UTC
svn commit: r1302637 -
/lucene/dev/trunk/solr/core/src/test/org/apache/solr/handler/component/DistributedQueryElevationComponentTest.java
Author: yonik
Date: Mon Mar 19 20:20:33 2012
New Revision: 1302637
URL: http://svn.apache.org/viewvc?rev=1302637&view=rev
Log:
SOLR-2949: use a diff elevate file for distrib QEC test
Modified:
lucene/dev/trunk/solr/core/src/test/org/apache/solr/handler/component/DistributedQueryElevationComponentTest.java
Modified: lucene/dev/trunk/solr/core/src/test/org/apache/solr/handler/component/DistributedQueryElevationComponentTest.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/core/src/test/org/apache/solr/handler/component/DistributedQueryElevationComponentTest.java?rev=1302637&r1=1302636&r2=1302637&view=diff
==============================================================================
--- lucene/dev/trunk/solr/core/src/test/org/apache/solr/handler/component/DistributedQueryElevationComponentTest.java (original)
+++ lucene/dev/trunk/solr/core/src/test/org/apache/solr/handler/component/DistributedQueryElevationComponentTest.java Mon Mar 19 20:20:33 2012
@@ -24,6 +24,8 @@ import org.apache.solr.BaseDistributedSe
import org.apache.solr.common.SolrInputDocument;
import org.apache.solr.common.params.CommonParams;
import org.apache.solr.common.util.FileUtils;
+import org.junit.After;
+import org.junit.AfterClass;
import org.junit.BeforeClass;
/**
@@ -41,14 +43,22 @@ public class DistributedQueryElevationCo
schemaString = "schema11.xml";
}
+ private static String elevateFilename = "elevate-data-distrib.xml";
+
@BeforeClass
public static void beforeClass() throws IOException {
+ System.setProperty("elevate.data.file", elevateFilename);
File parent = new File(TEST_HOME(), "conf");
File elevateFile = new File(parent, "elevate.xml");
- File elevateDataFile = new File(parent, "elevate-data.xml");
+ File elevateDataFile = new File(parent, elevateFilename);
FileUtils.copyFile(elevateFile, elevateDataFile);
}
+ @AfterClass
+ public static void afterClass() throws IOException {
+ System.clearProperty("elevate.data.file");
+ }
+
@Override
public void doTest() throws Exception {