dtoConverter.toDto(geoService.createCircle(factory.createPoint(new Coordinate(0, 0)), 10, 10)));
request.setSplitter(
dtoConverter.toDto(factory.createLineString(new Coordinate[] {
new Coordinate(-10, -10), new Coordinate(10, 10)
})));
SplitPolygonResponse response = (SplitPolygonResponse) dispatcher.execute(
SplitPolygonRequest.COMMAND, request, null, "en");
if (response.isError()) {
response.getErrors().get(0).printStackTrace();
}
Assert.assertFalse(response.isError());
Assert.assertNotNull(response.getGeometries());
// @todo should verify that split is correct
}