You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ds...@apache.org on 2014/12/07 04:20:20 UTC

svn commit: r1643644 - /lucene/dev/branches/lucene_solr_4_10/solr/core/src/test/org/apache/solr/search/TestSolr4Spatial.java

Author: dsmiley
Date: Sun Dec  7 03:20:20 2014
New Revision: 1643644

URL: http://svn.apache.org/r1643644
Log:
Fix spatial test by suppressing codecs that don't support DocValues

Modified:
    lucene/dev/branches/lucene_solr_4_10/solr/core/src/test/org/apache/solr/search/TestSolr4Spatial.java

Modified: lucene/dev/branches/lucene_solr_4_10/solr/core/src/test/org/apache/solr/search/TestSolr4Spatial.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/lucene_solr_4_10/solr/core/src/test/org/apache/solr/search/TestSolr4Spatial.java?rev=1643644&r1=1643643&r2=1643644&view=diff
==============================================================================
--- lucene/dev/branches/lucene_solr_4_10/solr/core/src/test/org/apache/solr/search/TestSolr4Spatial.java (original)
+++ lucene/dev/branches/lucene_solr_4_10/solr/core/src/test/org/apache/solr/search/TestSolr4Spatial.java Sun Dec  7 03:20:20 2014
@@ -24,6 +24,8 @@ import com.spatial4j.core.distance.Dista
 import com.spatial4j.core.shape.Point;
 import com.spatial4j.core.shape.Rectangle;
 import com.spatial4j.core.shape.impl.RectangleImpl;
+import org.apache.lucene.util.LuceneTestCase;
+import org.apache.lucene.util.LuceneTestCase.SuppressCodecs;
 import org.apache.solr.SolrTestCaseJ4;
 import org.apache.solr.common.SolrException;
 import org.apache.solr.schema.AbstractSpatialFieldType;
@@ -40,6 +42,7 @@ import java.util.Arrays;
  * Test Solr 4's new spatial capabilities from the new Lucene spatial module. Don't thoroughly test it here because
  * Lucene spatial has its own tests.  Some of these tests were ported from Solr 3 spatial tests.
  */
+@SuppressCodecs({"Lucene3x", "Appending", "Lucene40", "Lucene41"})//sometimes we need DocValues
 public class TestSolr4Spatial extends SolrTestCaseJ4 {
 
   private String fieldName;