Changeset 18819 in josm for trunk/test/unit
- Timestamp:
- 2023-08-23T13:53:32+02:00 (15 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/io/GpxReaderTest.java
r18818 r18819 104 104 105 105 @ParameterizedTest 106 @ValueSource(strings = "<gpx><wpt></wpt></gpx>") 106 @ValueSource(strings = { 107 "<gpx><wpt></wpt></gpx>", 108 "<gpx><trk><trkseg><trkpt></trkpt></trkseg></trk></gpx>", 109 "<gpx><rte><rtept></rtept></rte></gpx>" 110 }) 107 111 void testIncompleteLocations(String gpx) { 108 112 SAXException saxException = assertThrows(SAXException.class, … … 111 115 if ("<wpt>".regionMatches(0, gpx, 5, 4)) { 112 116 type = "wpt"; 117 } else if ("<trkpt>".regionMatches(0, gpx, 18, 7)) { 118 type = "trkpt"; 119 } else if ("<rtept>".regionMatches(0, gpx, 10, 7)) { 120 type = "rtept"; 113 121 } else { 114 122 fail("You need to add code to tell us what the exception for \"" + gpx + "\" should be");
Note:
See TracChangeset
for help on using the changeset viewer.