aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/cgeo/geocaching/files/GPXParserTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/src/cgeo/geocaching/files/GPXParserTest.java')
-rw-r--r--tests/src/cgeo/geocaching/files/GPXParserTest.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/src/cgeo/geocaching/files/GPXParserTest.java b/tests/src/cgeo/geocaching/files/GPXParserTest.java
index 642ca08..06661eb 100644
--- a/tests/src/cgeo/geocaching/files/GPXParserTest.java
+++ b/tests/src/cgeo/geocaching/files/GPXParserTest.java
@@ -150,6 +150,9 @@ public class GPXParserTest extends AbstractResourceInstrumentationTestCase {
assertEquals(parseTime("2011-09-11T07:00:00Z"), log.date);
assertEquals(-1, log.found);
assertEquals("Sehr schöne Runde und wir haben wieder etwas Neues über Hockenheim gelernt. Super Tarnung.\nTFTC, Geoteufel", log.log);
+ assertFalse(log.isOwn());
+ assertEquals(log.log, log.getDisplayText());
+ assertTrue(log.daysSinceLog() > 700);
// following info is not contained in pocket query gpx file
assertEquals(0, cache.getAttributes().size());
@@ -295,6 +298,14 @@ public class GPXParserTest extends AbstractResourceInstrumentationTestCase {
assertEquals(CacheSize.UNKNOWN, waymark.getSize());
}
+ /**
+ * This one uses geocodes where the first character is actually a digit, not a character
+ */
+ public void testGCTour() throws Exception {
+ final List<Geocache> caches = readGPX10(R.raw.gctour_gpx);
+ assertEquals(54, caches.size());
+ }
+
public void testOX() throws IOException, ParserException {
final List<Geocache> caches = readGPX10(R.raw.ox1ry0y_gpx);
assertEquals(1, caches.size());