Method FormatTest>>testCoordinateFormat(). The following 2 lines cause the
problem:
1)
assertEquals("23°46,8'E 12°44,4'S 127,9\u00A0m 4 janv. 2003",
format.format(position));
2)
assertEquals("23°46,8'E; 12°44,4'S; 127,9\u00A0m; 4 janv.2003",
format.format(position));
An ibm sdk produces a different string representation for dates:
IBM 23°46,8'E 12°44,4'S 127,9 m 4 Jan 2003
The solution is to specify the date format explicitly.
Replacement for 1)
format.setDatePattern("dd MM yyyy");
assertEquals("23°46,8'E 12°44,4'S 127,9\u00A0m 04 01 2003",
format.format(position));
Replacement for 2)
format.setDatePattern("dd MM yyyy");
assertEquals("23°46,8'E; 12°44,4'S; 127,9\u00A0m; 04 01 2003",
format.format(position));
Now, the test is running on ibm and sun sdk. Should I commit or do you want
a patch file.
christian
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel