aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorkoem <koem@petoria.de>2013-02-12 20:28:55 +1300
committerkoem <koem@petoria.de>2013-02-12 23:48:06 +1300
commit200254d7d2bd2d1d416db6296507994ffe5be207 (patch)
treea9991f02c99d417e2517f8831c6505e385ee8459 /tests
parentc1228f54411e11f373efb9c9d3205ec04ff9c0c7 (diff)
parent70251c24f5fafeeb150a2142249245e9515f560b (diff)
downloadcgeo-200254d7d2bd2d1d416db6296507994ffe5be207.zip
cgeo-200254d7d2bd2d1d416db6296507994ffe5be207.tar.gz
cgeo-200254d7d2bd2d1d416db6296507994ffe5be207.tar.bz2
Merge branch 'master' into oc_icons
- changed icons - repaired test class
Diffstat (limited to 'tests')
-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);
+ }
}