diff options
| author | Matrikss <matrikss@gmail.com> | 2014-01-27 23:22:13 +0000 |
|---|---|---|
| committer | Matrikss <matrikss@gmail.com> | 2014-01-27 23:22:13 +0000 |
| commit | 7359cbebab1b95b6ccf28726447c8888453427c0 (patch) | |
| tree | 973021f068e54a5ae515105864ef9832927275cf /tests/src | |
| parent | 08e43ebdf5977e7bac1fb5f48a12024b31f4d06d (diff) | |
| download | cgeo-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.java | 7 |
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()); + } + } |
