GeoId implements Serializable, Comparable<GeoId> { @Override @Pure public String toString() { return this.id; } GeoId(String id);   GeoId(double lowerx, double lowery, double upperx, double uppery, String id); @Pure static GeoId valueOf(String geoId); @Override @Pure String toString(); @Pure UUID toUUID(); @Pure @Override int compareTo(GeoId obj); @Pure @Override boolean equals(Object obj); @Pure @Override int hashCode(); @Pure Rectangle2d toBounds2D(); @Pure String getInternalId();  }
@Test public void testEqualsStringString() { String geoid11 = this.id11.toString(); String geoid12 = this.id12.toString(); String geoid13 = this.id13.toString(); String geoid21 = this.id21.toString(); String geoid22 = this.id22.toString(); String geoid23 = this.id23.toString(); assertEquals(geoid11, geoid12); assertEquals(geoid12, geoid11); assertNotEquals(geoid11, geoid13); assertNotEquals(geoid12, geoid13); assertNotEquals(geoid13, geoid11); assertNotEquals(geoid13, geoid11); assertEquals(geoid21, geoid22); assertEquals(geoid22, geoid21); assertNotEquals(geoid21, geoid23); assertNotEquals(geoid22, geoid23); assertNotEquals(geoid23, geoid21); assertNotEquals(geoid23, geoid22); }
@Test public void testToString() { assertEquals(makeStringId(this.loc11), this.id11.toString()); assertEquals(makeStringId(this.loc12), this.id12.toString()); assertEquals(makeStringId(this.loc13), this.id13.toString()); assertEquals(makeStringId(this.loc21), this.id21.toString()); assertEquals(makeStringId(this.loc22), this.id22.toString()); assertEquals(makeStringId(this.loc23), this.id23.toString()); assertEquals(this.id11.toString(), this.id11.toString()); assertEquals(this.id12.toString(), this.id11.toString()); assertNotEquals(this.id13.toString(), this.id11.toString()); assertNotEquals(this.id21.toString(), this.id11.toString()); assertNotEquals(this.id22.toString(), this.id11.toString()); assertNotEquals(this.id23.toString(), this.id11.toString()); assertEquals(this.id11.toString(), this.id12.toString()); assertEquals(this.id12.toString(), this.id12.toString()); assertNotEquals(this.id13.toString(), this.id12.toString()); assertNotEquals(this.id21.toString(), this.id12.toString()); assertNotEquals(this.id22.toString(), this.id12.toString()); assertNotEquals(this.id23.toString(), this.id12.toString()); assertNotEquals(this.id11.toString(), this.id13.toString()); assertNotEquals(this.id12.toString(), this.id13.toString()); assertEquals(this.id13.toString(), this.id13.toString()); assertNotEquals(this.id21.toString(), this.id13.toString()); assertNotEquals(this.id22.toString(), this.id13.toString()); assertNotEquals(this.id23.toString(), this.id13.toString()); assertNotEquals(this.id11.toString(), this.id21.toString()); assertNotEquals(this.id12.toString(), this.id21.toString()); assertNotEquals(this.id13.toString(), this.id21.toString()); assertEquals(this.id21.toString(), this.id21.toString()); assertEquals(this.id22.toString(), this.id21.toString()); assertNotEquals(this.id23.toString(), this.id21.toString()); assertNotEquals(this.id11.toString(), this.id22.toString()); assertNotEquals(this.id12.toString(), this.id22.toString()); assertNotEquals(this.id13.toString(), this.id22.toString()); assertEquals(this.id21.toString(), this.id22.toString()); assertEquals(this.id22.toString(), this.id22.toString()); assertNotEquals(this.id23.toString(), this.id22.toString()); assertNotEquals(this.id11.toString(), this.id23.toString()); assertNotEquals(this.id12.toString(), this.id23.toString()); assertNotEquals(this.id13.toString(), this.id23.toString()); assertNotEquals(this.id21.toString(), this.id23.toString()); assertNotEquals(this.id22.toString(), this.id23.toString()); assertEquals(this.id23.toString(), this.id23.toString()); }