Changeset 14456 in josm for trunk/test
- Timestamp:
- 2018-11-27T21:40:10+01:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/io/nmea/NmeaReaderTest.java
r14446 r14456 70 70 assertEquals(DateUtils.fromString("2016-01-25T05:05:09.400Z"), wayPoints.get(1).get(GpxConstants.PT_TIME)); 71 71 assertEquals(DateUtils.fromString("2016-01-25T05:05:09.600Z"), wayPoints.get(2).get(GpxConstants.PT_TIME)); 72 assertEquals(wayPoints.get(0).get Time(), wayPoints.get(0).get(GpxConstants.PT_TIME));73 74 assertEquals("2016-01-25T05:05:09.200Z", iso8601.format(wayPoints.get(0).get Time()));75 assertEquals("2016-01-25T05:05:09.400Z", iso8601.format(wayPoints.get(1).get Time()));76 assertEquals("2016-01-25T05:05:09.600Z", iso8601.format(wayPoints.get(2).get Time()));72 assertEquals(wayPoints.get(0).getDate(), wayPoints.get(0).get(GpxConstants.PT_TIME)); 73 74 assertEquals("2016-01-25T05:05:09.200Z", iso8601.format(wayPoints.get(0).getDate())); 75 assertEquals("2016-01-25T05:05:09.400Z", iso8601.format(wayPoints.get(1).getDate())); 76 assertEquals("2016-01-25T05:05:09.600Z", iso8601.format(wayPoints.get(2).getDate())); 77 77 78 78 assertEquals(new LatLon(46.98807, -1.400525), wayPoints.get(0).getCoor()); … … 171 171 172 172 private static Date readDate(String nmeaLine) throws IOException, SAXException { 173 return readWayPoint(nmeaLine).get Time();173 return readWayPoint(nmeaLine).getDate(); 174 174 } 175 175
Note:
See TracChangeset
for help on using the changeset viewer.