use of org.springframework.data.geo.Shape in project spring-data-mongodb by spring-projects.
the class MongoConvertersUnitTests method convertsSphereToDocumentAndBackCorrectly.
// DATAMONGO-858
@Test
public void convertsSphereToDocumentAndBackCorrectly() {
Sphere sphere = new Sphere(new Point(1, 2), 3);
Document document = GeoConverters.SphereToDocumentConverter.INSTANCE.convert(sphere);
org.springframework.data.geo.Shape shape = GeoConverters.DocumentToSphereConverter.INSTANCE.convert(document);
assertThat(shape, is((org.springframework.data.geo.Shape) sphere));
}
Aggregations