diff --git a/src/test/java/org/opentripplanner/apis/gtfs/GeoJsonScalarTest.java b/src/test/java/org/opentripplanner/apis/gtfs/GeoJsonScalarTest.java index cc88e22d074..9890b2d5398 100644 --- a/src/test/java/org/opentripplanner/apis/gtfs/GeoJsonScalarTest.java +++ b/src/test/java/org/opentripplanner/apis/gtfs/GeoJsonScalarTest.java @@ -23,9 +23,11 @@ void geoJson() throws JsonProcessingException { ); var geoJson = GraphQLScalars.GEOJSON_SCALAR.getCoercing().serialize(polygon); - var jsonNode = ObjectMappers + var expected = ObjectMappers .ignoringExtraFields() - .readTree("{\"type\":\"Polygon\",\"coordinates\":[[[0,0],[1,1],[2,2],[0,0]]]}"); - assertEquals(jsonNode.toString(), geoJson.toString()); + .readTree( + "{\"type\":\"Polygon\",\"coordinates\":[[[0.0,0.0],[1.0,1.0],[2.0,2.0],[0.0,0.0]]]}" + ); + assertEquals(expected.toString(), geoJson.toString()); } }