@Test public void testToString() { String result = position1.toString(); assertFalse(position2.toString().equals(result)); }
@Override public String toString() { StringBuilder s = new StringBuilder("Position:").append('\n'); if (position != null) { s.append("position:").append(position).append('\n'); } return s.toString(); }
DefaultPosition implements Position { @Override public String toString() { StringBuilder s = new StringBuilder("Position:").append('\n'); if (position != null) { s.append("position:").append(position).append('\n'); } return s.toString(); } }
DefaultPosition implements Position { @Override public String toString() { StringBuilder s = new StringBuilder("Position:").append('\n'); if (position != null) { s.append("position:").append(position).append('\n'); } return s.toString(); } DefaultPosition(final Date date);  DefaultPosition(final InternationalString datetime);  DefaultPosition(final TemporalPosition anyOther); }
DefaultPosition implements Position { @Override public String toString() { StringBuilder s = new StringBuilder("Position:").append('\n'); if (position != null) { s.append("position:").append(position).append('\n'); } return s.toString(); } DefaultPosition(final Date date);  DefaultPosition(final InternationalString datetime);  DefaultPosition(final TemporalPosition anyOther); TemporalPosition anyOther(); Date getDate(); Time getTime(); InternationalString getDateTime(); @Override boolean equals(final Object object); @Override int hashCode(); @Override String toString(); }
DefaultPosition implements Position { @Override public String toString() { StringBuilder s = new StringBuilder("Position:").append('\n'); if (position != null) { s.append("position:").append(position).append('\n'); } return s.toString(); } DefaultPosition(final Date date);  DefaultPosition(final InternationalString datetime);  DefaultPosition(final TemporalPosition anyOther); TemporalPosition anyOther(); Date getDate(); Time getTime(); InternationalString getDateTime(); @Override boolean equals(final Object object); @Override int hashCode(); @Override String toString();  }