GeoLocationPoint extends AbstractGeoLocation { @Pure public float getX() { return this.x; } GeoLocationPoint(double x, double y); @Override @Pure GeoId toGeoId(); @Override @SuppressWarnings("checkstyle:equalshashcode") @Pure int hashCode(); @Pure float getX(); @Pure float getY(); @Pure Point2d getPoint(); @Pure @Override Rectangle2d toBounds2D(); @Pure @Override GeodesicPosition toGeodesicPosition();  }
@Test public void testGetX() { assertEpsilonEquals(GeoLocationUtil.castDistance(this.coords11.getX()), this.location11.getX()); assertEpsilonEquals(GeoLocationUtil.castDistance(this.coords12.getX()), this.location12.getX()); assertEpsilonEquals(GeoLocationUtil.castDistance(this.coords13.getX()), this.location13.getX()); assertEpsilonEquals(GeoLocationUtil.castDistance(this.coords21.getX()), this.location21.getX()); assertEpsilonEquals(GeoLocationUtil.castDistance(this.coords22.getX()), this.location22.getX()); assertEpsilonEquals(GeoLocationUtil.castDistance(this.coords23.getX()), this.location23.getX()); }