@Test public void testInvariantGeojsonType4() { String json = "{ type: 'Point', coordinates: [0, 0] }"; TurfAssertions.geojsonType(Point.fromJson(json), "Point", "myfn"); }
@Test public void testInvariantGeojsonType1() throws TurfException { thrown.expect(TurfException.class); thrown.expectMessage(startsWith("Type and name required")); TurfAssertions.geojsonType(null, null, null); }
@Test public void testInvariantGeojsonType2() throws TurfException { thrown.expect(TurfException.class); thrown.expectMessage(startsWith("Type and name required")); TurfAssertions.geojsonType(null, null, "myfn"); }
@Test public void testInvariantGeojsonType3() throws TurfException { String json = "{ type: 'Point', coordinates: [0, 0] }"; thrown.expect(TurfException.class); thrown.expectMessage(startsWith("Invalid input to myfn: must be a Polygon, given Point")); TurfAssertions.geojsonType(Point.fromJson(json), "Polygon", "myfn"); }