Changeset 12421 in josm for trunk/test/unit/org
- Timestamp:
- 2017-06-22T00:29:46+02:00 (7 years ago)
- Location:
- trunk/test/unit/org/openstreetmap/josm/io/nmea
- Files:
-
- 1 added
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/io/nmea/NmeaReaderTest.java
r12418 r12421 1 1 // License: GPL. For details, see LICENSE file. 2 package org.openstreetmap.josm.io ;2 package org.openstreetmap.josm.io.nmea; 3 3 4 4 import static org.junit.Assert.assertEquals; 5 import static org.junit.Assert.assertFalse; 6 import static org.junit.Assert.assertTrue; 5 7 6 8 import java.io.FileInputStream; … … 20 22 import org.openstreetmap.josm.data.gpx.GpxTrackSegment; 21 23 import org.openstreetmap.josm.data.gpx.WayPoint; 24 import org.openstreetmap.josm.io.GpxReaderTest; 22 25 import org.openstreetmap.josm.testutils.JOSMTestRules; 23 26 import org.openstreetmap.josm.tools.date.DateUtils; … … 92 95 93 96 /** 97 * Unit test of {@link NmeaReader#isSentence}. 98 */ 99 @Test 100 public void testIsSentence() { 101 assertTrue(NmeaReader.isSentence("$GPVTG", Sentence.VTG)); 102 assertTrue(NmeaReader.isSentence("$GAVTG", Sentence.VTG)); 103 assertTrue(NmeaReader.isSentence("$GNVTG", Sentence.VTG)); 104 assertFalse(NmeaReader.isSentence("XGAVTG", Sentence.VTG)); 105 assertFalse(NmeaReader.isSentence("$GPXXX", Sentence.VTG)); 106 assertFalse(NmeaReader.isSentence("$XXVTG", Sentence.VTG)); 107 } 108 109 /** 94 110 * Non-regression test for <a href="https://josm.openstreetmap.de/ticket/1433">Bug #1433</a>. 95 111 * @throws Exception if an error occurs
Note:
See TracChangeset
for help on using the changeset viewer.