Rini Angreani created GEOT-3995:
-----------------------------------
Summary:
org.geotools.temporal.object.DefaultTemporalGeometricPrimitiveTest fails in 2012
Key: GEOT-3995
URL: https://jira.codehaus.org/browse/GEOT-3995
Project: GeoTools
Issue Type: Bug
Components: main
Affects Versions: 8.0-RC1
Reporter: Rini Angreani
Assignee: Jody Garnett
The following test case compares system date/time with January 1, 2012. It
fails because the date has passed.
{code}
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));
}
{code}
It works when I changed the comparison to a later year, say 2020.
{code}
cal.set(2020, 0, 1);
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual
desktops for less than the cost of PCs and save 60% on VDI infrastructure
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel