From b2d6de1a58e2894373b48054e4ef60a94abcbd88 Mon Sep 17 00:00:00 2001 From: Bananeweizen Date: Wed, 29 Jan 2014 07:10:16 +0100 Subject: import personal note from GSAK GPX --- tests/res/raw/gc3t1xg_gsak.gpx | 2 +- tests/src/cgeo/geocaching/files/GPXParserTest.java | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/res/raw/gc3t1xg_gsak.gpx b/tests/res/raw/gc3t1xg_gsak.gpx index 535d4d1..3c09a97 100644 --- a/tests/res/raw/gc3t1xg_gsak.gpx +++ b/tests/res/raw/gc3t1xg_gsak.gpx @@ -36,7 +36,7 @@ xmlns="http://www.topografix.com/GPX/1/0"> false 258 - + Personal Note Test d09416d5-dba9-4347-86a6-12f7b5ef2fff diff --git a/tests/src/cgeo/geocaching/files/GPXParserTest.java b/tests/src/cgeo/geocaching/files/GPXParserTest.java index d5e03f3..d8c49c3 100644 --- a/tests/src/cgeo/geocaching/files/GPXParserTest.java +++ b/tests/src/cgeo/geocaching/files/GPXParserTest.java @@ -332,4 +332,12 @@ public class GPXParserTest extends AbstractResourceInstrumentationTestCase { assertEquals(258, cache.getFavoritePoints()); } + public void testGsakPersonalNote() throws IOException, ParserException { + final List caches = readGPX10(R.raw.gc3t1xg_gsak); + assertNotNull(caches); + assertEquals(1, caches.size()); + final Geocache cache = caches.get(0); + assertEquals("Personal Note Test", cache.getPersonalNote()); + } + } -- cgit v1.1