@Test public void testSetPosition() { Position result = instant1.getPosition(); Position position = new DefaultPosition(new Date()); ((DefaultInstant) instant1).setPosition(position); assertFalse(instant1.getPosition().equals(result)); }
public void setPosition(Position position) { this.position = position; }
DefaultInstant extends DefaultTemporalGeometricPrimitive implements Instant { public void setPosition(Position position) { this.position = position; } }
DefaultInstant extends DefaultTemporalGeometricPrimitive implements Instant { public void setPosition(Position position) { this.position = position; } DefaultInstant(Position position); }
DefaultInstant extends DefaultTemporalGeometricPrimitive implements Instant { public void setPosition(Position position) { this.position = position; } DefaultInstant(Position position); Position getPosition(); Collection<Period> getBegunBy(); Collection<Period> getEndedBy(); void setPosition(Position position); void setBegunBy(Collection<Period> begunBy); void setEndBy(Collection<Period> endBy); @Override boolean equals(final Object object); @Override int hashCode(); @Override String toString(); }
DefaultInstant extends DefaultTemporalGeometricPrimitive implements Instant { public void setPosition(Position position) { this.position = position; } DefaultInstant(Position position); Position getPosition(); Collection<Period> getBegunBy(); Collection<Period> getEndedBy(); void setPosition(Position position); void setBegunBy(Collection<Period> begunBy); void setEndBy(Collection<Period> endBy); @Override boolean equals(final Object object); @Override int hashCode(); @Override String toString();  }