diff options
| author | Bananeweizen <bananeweizen@gmx.de> | 2013-09-12 07:49:07 +0200 |
|---|---|---|
| committer | Bananeweizen <bananeweizen@gmx.de> | 2013-09-12 07:49:07 +0200 |
| commit | f760b264a0455d69e8ae58a3bc68865132568938 (patch) | |
| tree | d8b9e301c79904a993f742637337b345212bf73e /tests/src | |
| parent | 80827ca1e90c8163dbf026f82eed534ebd097d8c (diff) | |
| download | cgeo-f760b264a0455d69e8ae58a3bc68865132568938.zip cgeo-f760b264a0455d69e8ae58a3bc68865132568938.tar.gz cgeo-f760b264a0455d69e8ae58a3bc68865132568938.tar.bz2 | |
refactoring: add test failure message
Diffstat (limited to 'tests/src')
| -rw-r--r-- | tests/src/cgeo/geocaching/connector/oc/OkapiClientTest.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/src/cgeo/geocaching/connector/oc/OkapiClientTest.java b/tests/src/cgeo/geocaching/connector/oc/OkapiClientTest.java index 410252f..aeb4e00 100644 --- a/tests/src/cgeo/geocaching/connector/oc/OkapiClientTest.java +++ b/tests/src/cgeo/geocaching/connector/oc/OkapiClientTest.java @@ -10,8 +10,8 @@ public class OkapiClientTest extends CGeoTestCase { public static void testGetOCCache() { final String geoCode = "OU0331"; Geocache cache = OkapiClient.getCache(geoCode); - assertNotNull(cache); - assertEquals(geoCode, cache.getGeocode()); + assertNotNull("Did not get cache from OKAPI", cache); + assertEquals("Unexpected geo code", geoCode, cache.getGeocode()); assertEquals("Oshkosh Municipal Tank", cache.getName()); assertTrue(cache.isDetailed()); // cache should be stored to DB (to listID 0) when loaded above |
