|
@@ -260,6 +260,7 @@ public class GeoShapeQueryBuilderTests extends AbstractQueryTestCase<GeoShapeQue
|
|
|
}
|
|
|
|
|
|
public void testWrongFieldType() throws IOException {
|
|
|
+ assumeTrue("test runs only when at least a type is registered", getCurrentTypes().length > 0);
|
|
|
ShapeType shapeType = ShapeType.randomType(random());
|
|
|
ShapeBuilder shape = RandomShapeGenerator.createShapeWithin(random(), null, shapeType);
|
|
|
final GeoShapeQueryBuilder queryBuilder = new GeoShapeQueryBuilder(STRING_FIELD_NAME, shape);
|