Skip to content

Apache Lucene 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.java
index 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
@Rule
public 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")
@Test
public 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")
@Test
public 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")
@Test
public 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")
@Test
public 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.java
index 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;