Details
Description
The following test case compares system date/time with January 1, 2012. It fails because the date has passed.
public void testLength() { cal.set(2012, 0, 1); temporalGeomericPrimitive1 = new DefaultPeriod(new DefaultInstant(position1), new DefaultInstant(position2)); temporalGeomericPrimitive2 = new DefaultPeriod(new DefaultInstant(position2), new DefaultInstant(new DefaultPosition(cal.getTime()))); Duration result = temporalGeomericPrimitive1.length(); assertFalse(temporalGeomericPrimitive2.length().equals(result)); }
It works when I changed the comparison to a later year, say 2020.
cal.set(2020, 0, 1);
Activity
Rini Angreani
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Fix Version/s | 8.0-RC1 [ 18150 ] |
Rini Angreani
made changes -
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Resolution | Fixed [ 1 ] |