Description
This abstract test class has hooks for basic operations:
protected abstract void addPointToDoc(String field, Document doc, double lat, double lon); protected abstract Query newRectQuery(String field, double minLat, double maxLat, double minLon, double maxLon); protected abstract Query newDistanceQuery(String field, double centerLat, double centerLon, double radiusMeters); protected abstract Query newPolygonQuery(String field, Polygon... polygon);
and hooks for quantization (quantizeLat/quantizeLon) so it can demand exact answers.
We currently have 3 subclasses, one is in the sandbox. I don't think the sandbox/ should have to depend on spatial/ just for this base test class, and having it in test-framework is a better place.