aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/cgeo/geocaching/connector/opencaching/OCXMLTest.java
diff options
context:
space:
mode:
authorkoem <koem@petoria.de>2013-02-13 00:59:35 +1300
committerkoem <koem@petoria.de>2013-02-13 00:59:35 +1300
commit6d450d980283b81e09fa774651c27ac77d229eb8 (patch)
treecbede16c1ef0f2de94efedc7c9a20c86b6905265 /tests/src/cgeo/geocaching/connector/opencaching/OCXMLTest.java
parent39a805880af44c2ecf963e39d9f2837ab8035731 (diff)
parent70251c24f5fafeeb150a2142249245e9515f560b (diff)
downloadcgeo-6d450d980283b81e09fa774651c27ac77d229eb8.zip
cgeo-6d450d980283b81e09fa774651c27ac77d229eb8.tar.gz
cgeo-6d450d980283b81e09fa774651c27ac77d229eb8.tar.bz2
Merge branch 'master' into chooselist
Diffstat (limited to 'tests/src/cgeo/geocaching/connector/opencaching/OCXMLTest.java')
-rw-r--r--tests/src/cgeo/geocaching/connector/opencaching/OCXMLTest.java22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/src/cgeo/geocaching/connector/opencaching/OCXMLTest.java b/tests/src/cgeo/geocaching/connector/opencaching/OCXMLTest.java
index 7cfd261..92c2063 100644
--- a/tests/src/cgeo/geocaching/connector/opencaching/OCXMLTest.java
+++ b/tests/src/cgeo/geocaching/connector/opencaching/OCXMLTest.java
@@ -34,4 +34,26 @@ 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);
+ }
+ }
+
+ public static void testOC0537Description() {
+ String geoCode = "OC0537";
+ Geocache cache = OCXMLClient.getCache(geoCode);
+ assertNotNull(cache);
+
+ assertFalse(cache.getDescription().length() < 100);
+ }
}