Index: trunk/test/unit/org/openstreetmap/josm/io/GpxReaderTest.java
===================================================================
--- trunk/test/unit/org/openstreetmap/josm/io/GpxReaderTest.java	(revision 18818)
+++ trunk/test/unit/org/openstreetmap/josm/io/GpxReaderTest.java	(revision 18819)
@@ -104,5 +104,9 @@
 
     @ParameterizedTest
-    @ValueSource(strings = "<gpx><wpt></wpt></gpx>")
+    @ValueSource(strings = {
+            "<gpx><wpt></wpt></gpx>",
+            "<gpx><trk><trkseg><trkpt></trkpt></trkseg></trk></gpx>",
+            "<gpx><rte><rtept></rtept></rte></gpx>"
+    })
     void testIncompleteLocations(String gpx) {
         SAXException saxException = assertThrows(SAXException.class,
@@ -111,4 +115,8 @@
         if ("<wpt>".regionMatches(0, gpx, 5, 4)) {
             type = "wpt";
+        } else if ("<trkpt>".regionMatches(0, gpx, 18, 7)) {
+            type = "trkpt";
+        } else if ("<rtept>".regionMatches(0, gpx, 10, 7)) {
+            type = "rtept";
         } else {
             fail("You need to add code to tell us what the exception for \"" + gpx + "\" should be");
