Ignore:
Timestamp:
2016-03-28T03:07:18+02:00 (8 years ago)
Author:
Don-vip
Message:

see #11924 - rework projection regression test for java 9

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/data/projection/ProjectionRegressionTest.java

    r10061 r10065  
    135135                next.en = new EastNorth(en.a, en.b);
    136136                next.ll2 = new LatLon(ll2.a, ll2.b);
    137                 if (TestUtils.getJavaVersion() >= 9) {
    138                     next.ll = next.ll.getRoundedToOsmPrecision();
    139                     next.en = getRoundedToOsmPrecision(en.a, en.b);
    140                     next.ll2 = next.ll2.getRoundedToOsmPrecision();
    141                 }
    142137
    143138                result.add(next);
     
    191186            }
    192187            EastNorth en = proj.latlon2eastNorth(data.ll);
     188            LatLon ll2 = proj.eastNorth2latlon(data.en);
    193189            if (TestUtils.getJavaVersion() >= 9) {
    194190                en = getRoundedToOsmPrecision(en.east(), en.north());
     191                ll2 = ll2.getRoundedToOsmPrecision();
     192                data.en = getRoundedToOsmPrecision(data.en.east(), data.en.north());
     193                data.ll2 = data.ll2.getRoundedToOsmPrecision();
    195194            }
    196195            if (!en.equals(data.en)) {
     
    201200                fail.append(error);
    202201            }
    203             LatLon ll2 = proj.eastNorth2latlon(data.en);
    204             if (TestUtils.getJavaVersion() >= 9) {
    205                 ll2 = ll2.getRoundedToOsmPrecision();
    206             }
    207202            if (!ll2.equals(data.ll2)) {
    208203                String error = String.format("%s (%s): Inverse projecting eastnorth(%s,%s):%n" +
Note: See TracChangeset for help on using the changeset viewer.