#297 - Upgraded to Boot 2.0 and Spring Data Kay.
Bumped version number to 2.0. Upgraded to Spring Boot 2.0. Stuff disabled in the meantime: - Cassandra: needs API adaptions in configuration - JPA > Security: test fails with weird Hibernate error - Redis > Reactive: API updates needed - Solr: configration updates necessary adjust versions Updated elastic search to the new version. Fixed the reactor version to Bismuth-BUILD-SNAPSHOT. This probably should be undone when boot references the proper bom.
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
*/
|
||||
package example.springdata.mongodb.geojson;
|
||||
|
||||
import org.bson.Document;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
@@ -29,9 +30,6 @@ import org.springframework.data.mongodb.core.query.BasicQuery;
|
||||
import org.springframework.data.mongodb.core.query.Criteria;
|
||||
import org.springframework.test.context.junit4.SpringRunner;
|
||||
|
||||
import com.mongodb.BasicDBObject;
|
||||
import com.mongodb.DBObject;
|
||||
|
||||
/**
|
||||
* Integration tests for {@link StoreRepository}.
|
||||
*
|
||||
@@ -116,12 +114,12 @@ public class StoreRepositoryTests {
|
||||
@Test
|
||||
public void findStoresThatIntersectGivenPolygon() {
|
||||
|
||||
DBObject geoJsonDbo = new BasicDBObject();
|
||||
Document geoJsonDbo = new Document();
|
||||
|
||||
operations.getConverter().write(GEO_JSON_POLYGON, geoJsonDbo);
|
||||
|
||||
BasicQuery bq = new BasicQuery(
|
||||
new BasicDBObject("location", new BasicDBObject("$geoIntersects", new BasicDBObject("$geometry", geoJsonDbo))));
|
||||
new Document("location", new Document("$geoIntersects", new Document("$geometry", geoJsonDbo))));
|
||||
|
||||
operations.find(bq, Store.class).forEach(System.out::println);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user