diff options
| author | koem <koem@petoria.de> | 2013-02-13 00:59:35 +1300 |
|---|---|---|
| committer | koem <koem@petoria.de> | 2013-02-13 00:59:35 +1300 |
| commit | 6d450d980283b81e09fa774651c27ac77d229eb8 (patch) | |
| tree | cbede16c1ef0f2de94efedc7c9a20c86b6905265 /tests | |
| parent | 39a805880af44c2ecf963e39d9f2837ab8035731 (diff) | |
| parent | 70251c24f5fafeeb150a2142249245e9515f560b (diff) | |
| download | cgeo-6d450d980283b81e09fa774651c27ac77d229eb8.zip cgeo-6d450d980283b81e09fa774651c27ac77d229eb8.tar.gz cgeo-6d450d980283b81e09fa774651c27ac77d229eb8.tar.bz2 | |
Merge branch 'master' into chooselist
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/src/cgeo/geocaching/connector/opencaching/OCXMLTest.java | 22 |
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); + } } |
