AngleFormatTest changes for revisions 31172:31173

While this commit is declared in the AngleFormatTest class, it actually applies to CoordinateFormatTest (legacy code was testing those two formats in the same test class). This commit sets explicitly the format pattern in order to avoid variations across different Java implementations. The pattern is different in the Geotk class (closer to the actual convention of the tested locale), but the idea behind this contribution is the same. To get the same idea in Apache SIS, the plan is to build the JDK-6 branch using the IBM JDK on Jenkins server, which will help us to identify those issues.

Command line:

svn diff --extensions "--unified --ignore-space-change --ignore-all-space --ignore-eol-style" -r31172:31173 https://svn.osgeo.org/geotools/trunk/modules/library/referencing/src/test/java/org/geotools/measure/FormatTest.java
Revision 31172Revision 31173
final GeneralDirectPosition position = new GeneralDirectPosition(new double[] {
    23.78, -12.74, 127.9, 3.2
});
assertEquals("23°46,8'E 12°44,4'S 127,9\u00A0m 4 janv. 2003", format.format(position));
/*
 * Try a point with wrong dimension.
 */
final GeneralDirectPosition position = new GeneralDirectPosition(new double[] {
    23.78, -12.74, 127.9, 3.2
});
format.setDatePattern("dd MM yyyy");
assertEquals("23°46,8'E 12°44,4'S 127,9\u00A0m 04 01 2003", format.format(position));
/*
 * Try a point with wrong dimension.
 */
        format.setCoordinateReferenceSystem(crs);
        format.setTimeZone(TimeZone.getTimeZone("GMT+01:00"));
        format.setSeparator("; ");
        assertEquals("23°46,8'E; 12°44,4'S; 127,9\u00A0m; 4 janv. 2003", format.format(position));
     }
}
        format.setCoordinateReferenceSystem(crs);
        format.setTimeZone(TimeZone.getTimeZone("GMT+01:00"));
        format.setSeparator("; ");
        format.setDatePattern("dd MM yyyy");
        assertEquals("23°46,8'E; 12°44,4'S; 127,9\u00A0m; 04 01 2003", format.format(position));
     }
}