Changeset 10335 in josm for trunk/test/unit/org


Ignore:
Timestamp:
2016-06-07T22:45:41+02:00 (8 years ago)
Author:
Don-vip
Message:

fix unit test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/gui/layer/geoimage/CorrelateGpxWithImagesTest.java

    r9880 r10335  
    1212import org.junit.Test;
    1313import org.openstreetmap.josm.JOSMFixture;
    14 import org.openstreetmap.josm.data.coor.LatLon;
     14import org.openstreetmap.josm.data.coor.CachedLatLon;
    1515import org.openstreetmap.josm.data.gpx.GpxData;
    1616import org.openstreetmap.josm.io.GpxReaderTest;
     
    5858
    5959        assertEquals(4, CorrelateGpxWithImages.matchGpxTrack(Arrays.asList(i0, i1, i2, i3), gpx, 0));
    60         assertEquals(new LatLon(47.19286847859621, 8.79732714034617), i0.getPos()); // start of track
    61         assertEquals(new LatLon(47.196979885920882, 8.79541271366179), i1.getPos()); // exact match
    62         assertEquals(new LatLon(47.197319911792874, 8.792139580473304), i3.getPos()); // exact match
    63         assertEquals(new LatLon((47.197131179273129 + 47.197186248376966) / 2, (8.792974585667253 + 8.792809881269932) / 2),
     60        assertEquals(new CachedLatLon(47.19286847859621, 8.79732714034617), i0.getPos()); // start of track
     61        assertEquals(new CachedLatLon(47.196979885920882, 8.79541271366179), i1.getPos()); // exact match
     62        assertEquals(new CachedLatLon(47.197319911792874, 8.792139580473304), i3.getPos()); // exact match
     63        assertEquals(new CachedLatLon((47.197131179273129 + 47.197186248376966) / 2, (8.792974585667253 + 8.792809881269932) / 2),
    6464                i2.getPos()); // interpolated
    6565    }
Note: See TracChangeset for help on using the changeset viewer.