LUCENE-6867: marking certain tests as ignored because of incompatibility in RandomizedTesting versions.

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1711201 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Dawid Weiss 2015-10-29 09:30:33 +00:00
parent 4e2d9deff4
commit 27a089a820
2 changed files with 9 additions and 6 deletions

View File

@ -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) {

View File

@ -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;