@Test public void testToString() { final NicGeoPoint nicGeoPoint = new NicGeoPointImpl(); nicGeoPoint.setXY(1234000, 4321000); nicGeoPoint.setDivergence(3.14159); String description = nicGeoPoint.toString(); assertTrue(description.contains("123")); assertTrue(description.contains("432")); assertTrue(description.contains("38816025")); assertTrue(description.contains("14208363")); assertTrue(description.contains("3.14159")); }
@Override public String toString() { return "LatLonE6: "+this.getLatitudeE6()+", "+this.getLongitudeE6()+"; XY: "+this.getX()+", "+this.getY()+"; " + "Divergence: "+this.getDivergence(); }
NicGeoPointImpl extends GeoPoint implements NicGeoPoint { @Override public String toString() { return "LatLonE6: "+this.getLatitudeE6()+", "+this.getLongitudeE6()+"; XY: "+this.getX()+", "+this.getY()+"; " + "Divergence: "+this.getDivergence(); } }
NicGeoPointImpl extends GeoPoint implements NicGeoPoint { @Override public String toString() { return "LatLonE6: "+this.getLatitudeE6()+", "+this.getLongitudeE6()+"; XY: "+this.getX()+", "+this.getY()+"; " + "Divergence: "+this.getDivergence(); } NicGeoPointImpl();  NicGeoPointImpl(final IGeoPoint geoPoint);  NicGeoPointImpl(final int latitudeE6, final int longitudeE6);  NicGeoPointImpl(final double latitude, final double longitude); }
NicGeoPointImpl extends GeoPoint implements NicGeoPoint { @Override public String toString() { return "LatLonE6: "+this.getLatitudeE6()+", "+this.getLongitudeE6()+"; XY: "+this.getX()+", "+this.getY()+"; " + "Divergence: "+this.getDivergence(); } NicGeoPointImpl();  NicGeoPointImpl(final IGeoPoint geoPoint);  NicGeoPointImpl(final int latitudeE6, final int longitudeE6);  NicGeoPointImpl(final double latitude, final double longitude); @Override double getX(); @Override double getY(); @Override void setXY(final double x, final double y); @Override double calculateDistanceTo(final NicGeoPoint point); @Override double getDivergence(); @Override void setDivergence(double divergence); @Override boolean equals(final Object o); @Override int hashCode(); @Override int compareTo(NicGeoPoint other); @Override String toString(); }
NicGeoPointImpl extends GeoPoint implements NicGeoPoint { @Override public String toString() { return "LatLonE6: "+this.getLatitudeE6()+", "+this.getLongitudeE6()+"; XY: "+this.getX()+", "+this.getY()+"; " + "Divergence: "+this.getDivergence(); } NicGeoPointImpl();  NicGeoPointImpl(final IGeoPoint geoPoint);  NicGeoPointImpl(final int latitudeE6, final int longitudeE6);  NicGeoPointImpl(final double latitude, final double longitude); @Override double getX(); @Override double getY(); @Override void setXY(final double x, final double y); @Override double calculateDistanceTo(final NicGeoPoint point); @Override double getDivergence(); @Override void setDivergence(double divergence); @Override boolean equals(final Object o); @Override int hashCode(); @Override int compareTo(NicGeoPoint other); @Override String toString();  }