Ejemplo n.º 1
0
 public void testNormalizeMultiPoint() throws Exception {
   Geometry m =
       this.geometryFactory.geometry("MULTIPOINT((30 20),(10 10),(20 20),(30 30),(20 10))");
   m = m.normalize();
   final Punctual expectedValue =
       (Punctual)
           this.geometryFactory.geometry("MULTIPOINT((10 10),(20 10),(20 20),(30 20),(30 30))");
   assertEqualsExact(expectedValue, m);
   final Punctual unexpectedValue =
       (Punctual)
           this.geometryFactory.geometry("MULTIPOINT((20 10),(20 20),(30 20),(30 30),(10 10))");
   assertTrue(!m.equals(2, unexpectedValue));
 }
Ejemplo n.º 2
0
 private void assertEqualsExact(final Geometry expectedValue, final Geometry actualValue) {
   assertTrue(
       "Expected " + expectedValue + " but encountered " + actualValue,
       actualValue.equals(2, expectedValue));
 }