diff options
| author | rsudev <rasch@munin-soft.de> | 2013-10-18 08:37:55 +0200 |
|---|---|---|
| committer | rsudev <rasch@munin-soft.de> | 2013-10-18 08:37:55 +0200 |
| commit | 65bb33e849dd0f101df801d5e1334fe30ea974b8 (patch) | |
| tree | bfa773af8a33722a2d701d14f3724eec694f3c74 /tests/src/cgeo/geocaching/connector/gc/GCParserTest.java | |
| parent | e5cb5ec8ee25a6ed1cef35f956bd1c7a14eccdff (diff) | |
| parent | 3e80f82fec4d8148562ae125f1c1ec14f65783f0 (diff) | |
| download | cgeo-65bb33e849dd0f101df801d5e1334fe30ea974b8.zip cgeo-65bb33e849dd0f101df801d5e1334fe30ea974b8.tar.gz cgeo-65bb33e849dd0f101df801d5e1334fe30ea974b8.tar.bz2 | |
Merge branch 'release'
Diffstat (limited to 'tests/src/cgeo/geocaching/connector/gc/GCParserTest.java')
| -rw-r--r-- | tests/src/cgeo/geocaching/connector/gc/GCParserTest.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/src/cgeo/geocaching/connector/gc/GCParserTest.java b/tests/src/cgeo/geocaching/connector/gc/GCParserTest.java index 163cbe7..43b6d01 100644 --- a/tests/src/cgeo/geocaching/connector/gc/GCParserTest.java +++ b/tests/src/cgeo/geocaching/connector/gc/GCParserTest.java @@ -61,13 +61,13 @@ public class GCParserTest extends AbstractResourceInstrumentationTestCase { public void testOwnCache() { final Geocache cache = parseCache(R.raw.own_cache); - assertNotNull(cache); - assertTrue(CollectionUtils.isNotEmpty(cache.getSpoilers())); - assertEquals(2, cache.getSpoilers().size()); + assertNotNull("Cache not parsed!", cache); + assertTrue("No spoilers found!", CollectionUtils.isNotEmpty(cache.getSpoilers())); + assertEquals("Wrong number of spoilers", 2, cache.getSpoilers().size()); final Image spoiler = cache.getSpoilers().get(1); - assertEquals("http://img.geocaching.com/cache/large/6ddbbe82-8762-46ad-8f4c-57d03f4b0564.jpeg", spoiler.getUrl()); - assertEquals("SPOILER", spoiler.getTitle()); - assertNull(spoiler.getDescription()); + assertEquals("First spoiler image url wrong", "http://imgcdn.geocaching.com/cache/large/6ddbbe82-8762-46ad-8f4c-57d03f4b0564.jpeg", spoiler.getUrl()); + assertEquals("First spoiler image text wrong", "SPOILER", spoiler.getTitle()); + assertNull("First spoiler image description not empty", spoiler.getDescription()); } private static Geocache createCache(int index) { |
