Changeset 18061 in josm for trunk/test/unit/org
- Timestamp:
- 2021-07-18T06:58:54+02:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/data/gpx/GpxImageCorrelationTest.java
r17888 r18061 115 115 @Test 116 116 void testMatchGpxTrack1() { 117 assertEquals(7, GpxImageCorrelation.matchGpxTrack(images, gpx, 0, false));117 assertEquals(7, GpxImageCorrelation.matchGpxTrack(images, gpx, new GpxImageCorrelationSettings(0, false))); 118 118 assertEquals(null, ib.getPos()); 119 119 assertEquals(new CachedLatLon(47.19286847859621, 8.79732714034617), i0.getPos()); // start of track … … 167 167 s.putBoolean("geoimage.seg.int", false); 168 168 169 assertEquals(4, GpxImageCorrelation.matchGpxTrack(images, gpx, 0, false));169 assertEquals(4, GpxImageCorrelation.matchGpxTrack(images, gpx, new GpxImageCorrelationSettings(0, false))); 170 170 assertEquals(null, ib.getPos()); 171 171 assertEquals(null, i0.getPos()); … … 195 195 s.putBoolean("geoimage.seg.int", false); 196 196 197 assertEquals(6, GpxImageCorrelation.matchGpxTrack(images, gpx, 0, false));197 assertEquals(6, GpxImageCorrelation.matchGpxTrack(images, gpx, new GpxImageCorrelationSettings(0, false))); 198 198 assertEquals(null, ib.getPos()); 199 199 assertEquals(new CachedLatLon(47.19286847859621, 8.79732714034617), i0.getPos()); … … 217 217 @Test 218 218 void testMatchGpxTrack4() { 219 assertEquals(9, GpxImageCorrelation.matchGpxTrack(images, gpx, 0, true));219 assertEquals(9, GpxImageCorrelation.matchGpxTrack(images, gpx, new GpxImageCorrelationSettings(0, true))); 220 220 assertEquals(new CachedLatLon(47.19286847859621, 8.79732714034617), ib.getPos()); 221 221 assertEquals(new CachedLatLon(47.19286847859621, 8.79732714034617), i0.getPos()); … … 254 254 s.putBoolean("geoimage.seg.int.dist", false); 255 255 256 assertEquals(9, GpxImageCorrelation.matchGpxTrack(images, gpx, 0, false));256 assertEquals(9, GpxImageCorrelation.matchGpxTrack(images, gpx, new GpxImageCorrelationSettings(0, false))); 257 257 assertEquals(new CachedLatLon(47.19286847859621, 8.79732714034617), ib.getPos()); 258 258 assertEquals(new CachedLatLon(47.19286847859621, 8.79732714034617), i0.getPos()); … … 288 288 s.putBoolean("geoimage.seg.int", false); 289 289 290 assertEquals(4, GpxImageCorrelation.matchGpxTrack(images, gpx, 0, false));290 assertEquals(4, GpxImageCorrelation.matchGpxTrack(images, gpx, new GpxImageCorrelationSettings(0, false))); 291 291 } 292 292 … … 307 307 s.putBoolean("geoimage.seg.int", false); 308 308 309 assertEquals(6, GpxImageCorrelation.matchGpxTrack(images, gpx, 0, false));309 assertEquals(6, GpxImageCorrelation.matchGpxTrack(images, gpx, new GpxImageCorrelationSettings(0, false))); 310 310 } 311 311 … … 326 326 s.putBoolean("geoimage.seg.int", false); 327 327 328 assertEquals(4, GpxImageCorrelation.matchGpxTrack(images, gpx, 0, false));328 assertEquals(4, GpxImageCorrelation.matchGpxTrack(images, gpx, new GpxImageCorrelationSettings(0, false))); 329 329 } 330 330 … … 345 345 s.putBoolean("geoimage.seg.int", false); 346 346 347 assertEquals(6, GpxImageCorrelation.matchGpxTrack(images, gpx, 0, false));347 assertEquals(6, GpxImageCorrelation.matchGpxTrack(images, gpx, new GpxImageCorrelationSettings(0, false))); 348 348 } 349 349
Note:
See TracChangeset
for help on using the changeset viewer.