aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorBananeweizen <bananeweizen@gmx.de>2013-06-01 14:12:02 +0200
committerBananeweizen <bananeweizen@gmx.de>2013-06-01 14:12:02 +0200
commit2ab4eab43295c1c02a1682eff2251eb65a6fe9fe (patch)
treeda85178102fcd1e1df1ee4991e6c295d5d33decb /tests
parentde0922ed82feb3d4715b8b354951c93852f4567a (diff)
downloadcgeo-2ab4eab43295c1c02a1682eff2251eb65a6fe9fe.zip
cgeo-2ab4eab43295c1c02a1682eff2251eb65a6fe9fe.tar.gz
cgeo-2ab4eab43295c1c02a1682eff2251eb65a6fe9fe.tar.bz2
fix #2820: OC search no longer working without authorization
Diffstat (limited to 'tests')
-rw-r--r--tests/src/cgeo/geocaching/connector/oc/OkapiClientTest.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/src/cgeo/geocaching/connector/oc/OkapiClientTest.java b/tests/src/cgeo/geocaching/connector/oc/OkapiClientTest.java
index 4f44f6b..50bf22a 100644
--- a/tests/src/cgeo/geocaching/connector/oc/OkapiClientTest.java
+++ b/tests/src/cgeo/geocaching/connector/oc/OkapiClientTest.java
@@ -21,4 +21,11 @@ public class OkapiClientTest extends CGeoTestCase {
assertEquals("Oshkosh Municipal Tank", cache.getName());
assertTrue(cache.isDetailed());
}
+
+ public static void testOCSearchMustWorkWithoutOAuthAccessTokens() {
+ final String geoCode = "OC1234";
+ Geocache cache = OkapiClient.getCache(geoCode);
+ assertNotNull(cache);
+ assertEquals("Wupper-Schein", cache.getName());
+ }
}