diff options
author | Stephan Merker <merker.stephan@googlemail.com> | 2011-09-28 22:00:16 +0200 |
---|---|---|
committer | Stephan Merker <merker.stephan@googlemail.com> | 2011-09-28 22:00:16 +0200 |
commit | 945fef72bfbb02a95aec9f6960854de7d7d19afe (patch) | |
tree | 91e6e19d6514307fc653604cfb857b159e844d7c /tests/src/cgeo/geocaching/test | |
parent | 90141a1632dafe90e69abffa88690cf4b3886d01 (diff) | |
download | cgeo-945fef72bfbb02a95aec9f6960854de7d7d19afe.zip cgeo-945fef72bfbb02a95aec9f6960854de7d7d19afe.tar.gz cgeo-945fef72bfbb02a95aec9f6960854de7d7d19afe.tar.bz2 |
Improved getWaypointsFileForGpx()
Diffstat (limited to 'tests/src/cgeo/geocaching/test')
-rw-r--r-- | tests/src/cgeo/geocaching/test/GPXParserTest.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/src/cgeo/geocaching/test/GPXParserTest.java b/tests/src/cgeo/geocaching/test/GPXParserTest.java index 1576da4..b469f5c 100644 --- a/tests/src/cgeo/geocaching/test/GPXParserTest.java +++ b/tests/src/cgeo/geocaching/test/GPXParserTest.java @@ -181,6 +181,9 @@ public class GPXParserTest extends InstrumentationTestCase { assertEquals(new File("/mnt/sdcard/1-wpts.gpx"), GPXParser.getWaypointsFileForGpx(new File("/mnt/sdcard/1.gpx"))); assertEquals(new File("/mnt/sd.card/1-wpts.gpx"), GPXParser.getWaypointsFileForGpx(new File("/mnt/sd.card/1.gpx"))); assertEquals(new File("1234567.9-wpts.gpx"), GPXParser.getWaypointsFileForGpx(new File("1234567.9.gpx"))); + assertEquals(new File("1234567-wpts.GPX"), GPXParser.getWaypointsFileForGpx(new File("1234567.GPX"))); + assertEquals(new File("gpx.gpx-wpts.gpx"), GPXParser.getWaypointsFileForGpx(new File("gpx.gpx.gpx"))); + assertNull(GPXParser.getWaypointsFileForGpx(new File("123.gpy"))); assertNull(GPXParser.getWaypointsFileForGpx(new File("gpx"))); assertNull(GPXParser.getWaypointsFileForGpx(new File(".gpx"))); assertNull(GPXParser.getWaypointsFileForGpx(new File("/mnt/sdcard/.gpx"))); |