Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardehrenfried committed Mar 19, 2024
1 parent 03b5b27 commit 8916e75
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
}

0 comments on commit 8916e75

Please sign in to comment.