From 770b16ebbc0f89d088aa3a8dfca2277864b61b24 Mon Sep 17 00:00:00 2001 From: rsudev Date: Mon, 11 Feb 2013 20:53:00 +0100 Subject: Fix #2441, Owner information not shown for OC.de caches Extended oc connector to return owner state as well --- .../cgeo/geocaching/connector/opencaching/OCXMLTest.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'tests') diff --git a/tests/src/cgeo/geocaching/connector/opencaching/OCXMLTest.java b/tests/src/cgeo/geocaching/connector/opencaching/OCXMLTest.java index 7cfd261..0957a0d 100644 --- a/tests/src/cgeo/geocaching/connector/opencaching/OCXMLTest.java +++ b/tests/src/cgeo/geocaching/connector/opencaching/OCXMLTest.java @@ -34,4 +34,18 @@ public class OCXMLTest extends CGeoTestCase { Settings.setOCConnectorUserName(oldOCName); } } + + public static void testOCOwner() { + String oldOCName = Settings.getOCConnectorUserName(); + try { + Settings.setOCConnectorUserName("andi12.2"); + String geoCode = "OCC9BE"; + Geocache cache = OCXMLClient.getCache(geoCode); + assertNotNull(cache); + + assertTrue(cache.isOwner()); + } finally { + Settings.setOCConnectorUserName(oldOCName); + } + } } -- cgit v1.1 From 5536a37f79649656563238d2dfe21a7e6743b87e Mon Sep 17 00:00:00 2001 From: rsudev Date: Mon, 11 Feb 2013 21:37:58 +0100 Subject: Fix #2348, Cache description is missing for OC0537 Added failing testcase and fixed modifiedsince in query-string --- tests/src/cgeo/geocaching/connector/opencaching/OCXMLTest.java | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests') diff --git a/tests/src/cgeo/geocaching/connector/opencaching/OCXMLTest.java b/tests/src/cgeo/geocaching/connector/opencaching/OCXMLTest.java index 0957a0d..92c2063 100644 --- a/tests/src/cgeo/geocaching/connector/opencaching/OCXMLTest.java +++ b/tests/src/cgeo/geocaching/connector/opencaching/OCXMLTest.java @@ -48,4 +48,12 @@ public class OCXMLTest extends CGeoTestCase { Settings.setOCConnectorUserName(oldOCName); } } + + public static void testOC0537Description() { + String geoCode = "OC0537"; + Geocache cache = OCXMLClient.getCache(geoCode); + assertNotNull(cache); + + assertFalse(cache.getDescription().length() < 100); + } } -- cgit v1.1