1 package org.wamblee.gpx;
3 import java.io.IOException;
5 import org.wamblee.gps.track.Track;
6 import org.wamblee.io.ClassPathResource;
7 import org.wamblee.xml.XMLException;
9 import junit.framework.TestCase;
11 public class GpxParserTest extends TestCase {
14 * Tests parsing of a GPS file received by Payne Freret.
16 public void testNoJoy() throws IOException, XMLException {
17 GpxParser parser = new GpxParser();
18 Track track = parser.parse(new ClassPathResource("nojoy.gpx").getInputStream());
19 assertEquals(468, track.size());