GeoPolygon extends GeoShapeBase { @Override public void validate() { GeoUtils.toJtsPolygon(this.outerBoundary, this.holeBoundaries, false); } GeoPolygon(List<GeoPoint> outerBoundary);  GeoPolygon(List<GeoPoint> outerBoundary, String description);  GeoPolygon(List<GeoPoint> outerBoundary, List<List<GeoPoint>> holeBoundaries);  GeoPolygon(List<GeoPoint> outerBoundary, List<List<GeoPoint>> holeBoundaries, String description); @Override void validate(); static GeoShape createLenient(List<GeoPoint> outerBoundary); static GeoShape createLenient(List<GeoPoint> outerBoundary, String description); static GeoShape createLenient(List<GeoPoint> outerBoundary, List<List<GeoPoint>> holeBoundaries); static GeoShape createLenient(List<GeoPoint> outerBoundary, List<List<GeoPoint>> holeBoundaries, String description); List<GeoPoint> getOuterBoundary(); GeoPolygon addHole(List<GeoPoint> geoPoints); List<List<GeoPoint>> getHoles(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }
@Test public void testValid() { GeoPolygon polygon = createPolygon(VALID_TRIANGLE); polygon.validate(); }