Apache Solr open-source search software
LUCENE-6867: marking certain tests as ignored because of incompatibility in RandomizedTesting versions.
Dawid Weiss27a089a820e0
diff --git a/lucene/spatial/src/test/org/apache/lucene/spatial/spatial4j/Geo3dShapeRectRelationTestCase.java b/lucene/spatial/src/test/org/apache/lucene/spatial/spatial4j/Geo3dShapeRectRelationTestCase.javaindex e0e7bcef35b..47d8e32d250 100644--- a/lucene/spatial/src/test/org/apache/lucene/spatial/spatial4j/Geo3dShapeRectRelationTestCase.java+++ b/lucene/spatial/src/test/org/apache/lucene/spatial/spatial4j/Geo3dShapeRectRelationTestCase.java@@ -48,10 +48,6 @@ public abstract class Geo3dShapeRectRelationTestCase extends RandomizedShapeTest@Rulepublic final TestLog testLog = TestLog.instance;- protected static Random random() {- return RandomizedContext.current().getRandom();- }-protected final PlanetModel planetModel;public Geo3dShapeRectRelationTestCase(PlanetModel planetModel) {@@ -117,6 +113,7 @@ public abstract class Geo3dShapeRectRelationTestCase extends RandomizedShapeTest}}+ @AwaitsFix(bugUrl = "https://issues.apache.org/jira/browse/LUCENE-6867")@Testpublic void testGeoCircleRect() {new Geo3dRectIntersectionTestHelper(ctx) {@@ -139,6 +136,7 @@ public abstract class Geo3dShapeRectRelationTestCase extends RandomizedShapeTest}.testRelateWithRectangle();}+ @AwaitsFix(bugUrl = "https://issues.apache.org/jira/browse/LUCENE-6867")@Testpublic void testGeoBBoxRect() {new Geo3dRectIntersectionTestHelper(ctx) {@@ -173,6 +171,7 @@ public abstract class Geo3dShapeRectRelationTestCase extends RandomizedShapeTest}.testRelateWithRectangle();}+ @AwaitsFix(bugUrl = "https://issues.apache.org/jira/browse/LUCENE-6867")@Testpublic void testGeoPolygonRect() {new Geo3dRectIntersectionTestHelper(ctx) {@@ -216,6 +215,7 @@ public abstract class Geo3dShapeRectRelationTestCase extends RandomizedShapeTest}.testRelateWithRectangle();}+ @AwaitsFix(bugUrl = "https://issues.apache.org/jira/browse/LUCENE-6867")@Testpublic void testGeoPathRect() {new Geo3dRectIntersectionTestHelper(ctx) {diff --git a/lucene/spatial/src/test/org/apache/lucene/spatial/spatial4j/RandomizedShapeTestCase.java b/lucene/spatial/src/test/org/apache/lucene/spatial/spatial4j/RandomizedShapeTestCase.javaindex e110e168d5e..6d8d599bf7b 100644--- a/lucene/spatial/src/test/org/apache/lucene/spatial/spatial4j/RandomizedShapeTestCase.java+++ b/lucene/spatial/src/test/org/apache/lucene/spatial/spatial4j/RandomizedShapeTestCase.java@@ -18,7 +18,6 @@ package org.apache.lucene.spatial.spatial4j;*/-import com.carrotsearch.randomizedtesting.RandomizedTest;import com.spatial4j.core.context.SpatialContext;import com.spatial4j.core.distance.DistanceUtils;import com.spatial4j.core.shape.Circle;@@ -31,11 +30,15 @@ import com.spatial4j.core.shape.impl.Range;import static com.spatial4j.core.shape.SpatialRelation.CONTAINS;import static com.spatial4j.core.shape.SpatialRelation.WITHIN;+import org.apache.lucene.util.LuceneTestCase;++import static com.carrotsearch.randomizedtesting.RandomizedTest.*;+/*** A base test class with utility methods to help test shapes.* Extends from RandomizedTest.*/-public abstract class RandomizedShapeTestCase extends RandomizedTest {+public abstract class RandomizedShapeTestCase extends LuceneTestCase {protected static final double EPS = 10e-9;