aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src
diff options
context:
space:
mode:
authorMatrikss <matrikss@gmail.com>2014-01-27 23:22:13 +0000
committerMatrikss <matrikss@gmail.com>2014-01-27 23:22:13 +0000
commit7359cbebab1b95b6ccf28726447c8888453427c0 (patch)
tree973021f068e54a5ae515105864ef9832927275cf /tests/src
parent08e43ebdf5977e7bac1fb5f48a12024b31f4d06d (diff)
downloadcgeo-7359cbebab1b95b6ccf28726447c8888453427c0.zip
cgeo-7359cbebab1b95b6ccf28726447c8888453427c0.tar.gz
cgeo-7359cbebab1b95b6ccf28726447c8888453427c0.tar.bz2
Add FavPoints parsing for GSAK GPX;
Add test case;
Diffstat (limited to 'tests/src')
-rw-r--r--tests/src/cgeo/geocaching/files/GPXParserTest.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/src/cgeo/geocaching/files/GPXParserTest.java b/tests/src/cgeo/geocaching/files/GPXParserTest.java
index dcaad22..d5e03f3 100644
--- a/tests/src/cgeo/geocaching/files/GPXParserTest.java
+++ b/tests/src/cgeo/geocaching/files/GPXParserTest.java
@@ -325,4 +325,11 @@ public class GPXParserTest extends AbstractResourceInstrumentationTestCase {
assertEquals("Wasserleitung", cache.getHint());
}
+ public void testGsakFavPoints() throws IOException, ParserException {
+ final List<Geocache> caches = readGPX10(R.raw.gc3t1xg_gsak);
+ assertEquals(1, caches.size());
+ final Geocache cache = caches.get(0);
+ assertEquals(258, cache.getFavoritePoints());
+ }
+
}