assertCoordinate(expected, oblong.getCenter());
}
@Test
public void getVertices() {
PolygonElement oblong = new OblongImpl(MINX, MINY, WIDTH, HEIGHT, null);
Coordinate[] expected = {
new Coordinate(MINX, MINY),
new Coordinate(MINX, MINY + HEIGHT),
new Coordinate(MINX + WIDTH, MINY + HEIGHT),
new Coordinate(MINX + WIDTH, MINY),
};
Coordinate[] actual = oblong.getVertices();
assertEquals(expected.length, actual.length);
for (int i = 0; i < expected.length; i++) {
assertCoordinate(expected[i], actual[i]);
}
}