Changeset 9726 in josm for trunk/test/unit
- Timestamp:
- 2016-02-03T20:57:12+01:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/gui/layer/geoimage/CorrelateGpxWithImagesTest.java
r9669 r9726 5 5 6 6 import java.util.Arrays; 7 import java.util.Collections; 7 8 import java.util.TimeZone; 8 9 … … 12 13 import org.openstreetmap.josm.data.gpx.GpxData; 13 14 import org.openstreetmap.josm.io.GpxReaderTest; 15 import org.openstreetmap.josm.tools.Pair; 14 16 import org.openstreetmap.josm.tools.date.DateUtils; 15 17 import org.openstreetmap.josm.tools.date.DateUtilsTest; … … 59 61 i2.getPos()); // interpolated 60 62 } 63 64 /** 65 * Tests automatic guessing of timezone/offset 66 * @throws Exception if an error occurs 67 */ 68 @Test 69 public void testAutoGuess() throws Exception { 70 final GpxData gpx = GpxReaderTest.parseGpxData("data_nodist/2094047.gpx"); 71 final ImageEntry i0 = new ImageEntry(); 72 i0.setExifTime(DateUtils.fromString("2016:01:03 11:59:54")); // 4 sec before start of GPX 73 i0.createTmp(); 74 assertEquals(Pair.create(0.0, -4L), CorrelateGpxWithImages.autoGuess(Collections.singletonList(i0), gpx)); 75 } 61 76 }
Note:
See TracChangeset
for help on using the changeset viewer.