/** Test of setFrame method, of class DefaultTemporalPosition. */ @Test public void testSetFrame() { TemporalReferenceSystem result = ((DefaultTemporalPosition) temporalPosition1).getFrame(); NamedIdentifier name = new NamedIdentifier(Citations.CRS, "Babylonian calendar"); ((DefaultTemporalPosition) temporalPosition1) .setFrame(new DefaultTemporalReferenceSystem(name, null)); assertFalse(((DefaultTemporalPosition) temporalPosition1).getFrame().equals(result)); }
&& ((Instant) other).getPosition().anyOther() != null) { if (!((DefaultTemporalPosition) ((Instant) this).getPosition().anyOther()) .getFrame() .equals( ((DefaultTemporalPosition) ((Instant) other).getPosition().anyOther()) .getFrame())) { try { throw new Exception( if (((Instant) this).getPosition().anyOther().getIndeterminatePosition() != null || ((DefaultTemporalPosition) ((Instant) this).getPosition().anyOther()) .getFrame() instanceof OrdinalReferenceSystem) { try { if (((Instant) other).getPosition().anyOther().getIndeterminatePosition() != null || ((DefaultTemporalPosition) ((Instant) other).getPosition().anyOther()) .getFrame() instanceof OrdinalReferenceSystem) { try {
if (!((DefaultTemporalPosition) ((Instant) this).getPosition().anyOther()).getFrame().equals(((DefaultTemporalPosition) ((Instant) other).getPosition().anyOther()).getFrame())) { try { throw new Exception("the TM_TemporalPositions are not both associated with the same TM_ReferenceSystem !"); ((DefaultTemporalPosition) ((Instant) this).getPosition().anyOther()).getFrame() instanceof OrdinalReferenceSystem) { try { throw new Exception("either of the two TM_TemporalPositions is indeterminate or is associated with a TM_OrdianlReferenceSystem !"); ((DefaultTemporalPosition) ((Instant) other).getPosition().anyOther()).getFrame() instanceof OrdinalReferenceSystem) { try { throw new Exception("either of the two TM_TemporalPositions is indeterminate or is associated with a TM_OrdianlReferenceSystem !");
if (!((DefaultTemporalPosition) ((Instant) this).getPosition().anyOther()).getFrame().equals(((DefaultTemporalPosition) ((Instant) other).getPosition().anyOther()).getFrame())) { try { throw new Exception("the TM_TemporalPositions are not both associated with the same TM_ReferenceSystem !"); ((DefaultTemporalPosition) ((Instant) this).getPosition().anyOther()).getFrame() instanceof OrdinalReferenceSystem) { try { throw new Exception("either of the two TM_TemporalPositions is indeterminate or is associated with a TM_OrdianlReferenceSystem !"); ((DefaultTemporalPosition) ((Instant) other).getPosition().anyOther()).getFrame() instanceof OrdinalReferenceSystem) { try { throw new Exception("either of the two TM_TemporalPositions is indeterminate or is associated with a TM_OrdianlReferenceSystem !");