This commit replaces a call to JUnit assertEquals
method by explicit string comparison,
probably for debugging purpose. This change has been discarded.
Command line:
svn diff --extensions "--unified --ignore-space-change --ignore-all-space --ignore-eol-style" -r6274:6275 https://svn.osgeo.org/geotools/trunk/modules/library/referencing/src/test/java/org/geotools/measure/FormatTest.java
Revision 6274 | Revision 6275 |
---|---|
new TemporalCRS("Time", datum, TemporalCS.DAYS)); final CoordinateFormat format = new CoordinateFormat(Locale.FRANCE); format.setCoordinateReferenceSystem(crs); assertEquals("23°46,8'E 12°44,4'S 127,9 4 janv. 2003", format.format(new DirectPosition(new double[]{23.78, -12.74, 127.9, 3.2}))); } } |
new TemporalCRS("Time", datum, TemporalCS.DAYS)); final CoordinateFormat format = new CoordinateFormat(Locale.FRANCE); format.setCoordinateReferenceSystem(crs); DirectPosition position = new DirectPosition(new double[]{23.78, -12.74, 127.9, 3.2}); String txt = format.format( position ); String expected = "23°46,8'E 12°44,4'S 127,9 4 janv. 2003"; if( !expected.equals( txt )){ System.err.println( "FORMAT:'"+txt+"'" ); System.err.println( "EXPECT:'"+expected+"'" ); } //assertEquals( expected, txt ); } } |