+package org.wamblee.gpx;
+
+import java.io.IOException;
+
+import org.wamblee.gps.track.Track;
+import org.wamblee.io.ClassPathResource;
+import org.wamblee.xml.XMLException;
+
+import junit.framework.TestCase;
+
+public class GpxParserTest extends TestCase {
+
+ /**
+ * Tests parsing of a GPS file received by Payne Freret.
+ */
+ public void testNoJoy() throws IOException, XMLException {
+ GpxParser parser = new GpxParser();
+ Track track = parser.parse(new ClassPathResource("nojoy.gpx").getInputStream());
+ assertEquals(468, track.size());
+ }
+}