diff options
author | rsudev <rasch@munin-soft.de> | 2014-06-11 08:24:20 +0200 |
---|---|---|
committer | rsudev <rasch@munin-soft.de> | 2014-06-11 08:24:34 +0200 |
commit | 2c73d92b7db4f11e954336b475fc22d95674d9bd (patch) | |
tree | 82f166e8aed77705859584b7a9307ca646e5df0c /tests/src/cgeo/geocaching/connector | |
parent | 2dd329886bbd3e773615652ffd784fecc2d648a3 (diff) | |
download | cgeo-2c73d92b7db4f11e954336b475fc22d95674d9bd.zip cgeo-2c73d92b7db4f11e954336b475fc22d95674d9bd.tar.gz cgeo-2c73d92b7db4f11e954336b475fc22d95674d9bd.tar.bz2 |
Fixes #3939, Will attend not counted in log summary on OC-logbooks
Diffstat (limited to 'tests/src/cgeo/geocaching/connector')
-rw-r--r-- | tests/src/cgeo/geocaching/connector/oc/OkapiClientTest.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/src/cgeo/geocaching/connector/oc/OkapiClientTest.java b/tests/src/cgeo/geocaching/connector/oc/OkapiClientTest.java index 0c65d87..04bb5ac 100644 --- a/tests/src/cgeo/geocaching/connector/oc/OkapiClientTest.java +++ b/tests/src/cgeo/geocaching/connector/oc/OkapiClientTest.java @@ -6,6 +6,7 @@ import cgeo.CGeoTestCase; import cgeo.geocaching.DataStore; import cgeo.geocaching.Geocache; import cgeo.geocaching.enumerations.LoadFlags; +import cgeo.geocaching.enumerations.LogType; public class OkapiClientTest extends CGeoTestCase { @@ -48,4 +49,13 @@ public class OkapiClientTest extends CGeoTestCase { assertThat(cache.getWaypoints()).hasSize(3); } + public static void testOCWillAttendLogs() { + final String geoCode = "OC10CB8"; + + removeCacheCompletely(geoCode); + Geocache cache = OkapiClient.getCache(geoCode); + assertThat(cache).as("Cache from OKAPI").isNotNull(); + assertThat(cache.getLogCounts().get(LogType.WILL_ATTEND)).isGreaterThan(0); + } + } |