diff options
author | Bananeweizen <bananeweizen@gmx.de> | 2012-05-05 10:31:30 +0200 |
---|---|---|
committer | Bananeweizen <bananeweizen@gmx.de> | 2012-05-05 10:31:30 +0200 |
commit | 057f24b4f57dadeeba92a04c83e3bcd790e983b1 (patch) | |
tree | 23464d3fd6a16c6ede3206bc39ed4b2e16d0419c /tests/src/cgeo/geocaching/connector/ox/OXConnectorTest.java | |
parent | 84c6bd6cc358b2cde2926a62990e4c151c47d6d1 (diff) | |
download | cgeo-057f24b4f57dadeeba92a04c83e3bcd790e983b1.zip cgeo-057f24b4f57dadeeba92a04c83e3bcd790e983b1.tar.gz cgeo-057f24b4f57dadeeba92a04c83e3bcd790e983b1.tar.bz2 |
refactoring: more cleanup in connector interfaces
* switch from method overrides to interface detection for connector
features
* remove GCBase and put code into other classes
* reduce GC specific code being used in general activities
Diffstat (limited to 'tests/src/cgeo/geocaching/connector/ox/OXConnectorTest.java')
-rw-r--r-- | tests/src/cgeo/geocaching/connector/ox/OXConnectorTest.java | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/src/cgeo/geocaching/connector/ox/OXConnectorTest.java b/tests/src/cgeo/geocaching/connector/ox/OXConnectorTest.java new file mode 100644 index 0000000..77394de --- /dev/null +++ b/tests/src/cgeo/geocaching/connector/ox/OXConnectorTest.java @@ -0,0 +1,16 @@ +package cgeo.geocaching.connector.ox; + +import junit.framework.TestCase; + +public class OXConnectorTest extends TestCase { + + public static void testCanHandle() { + // http://www.opencaching.com/api_doc/concepts/oxcodes.html + final OXConnector oxConnector = new OXConnector(); + assertTrue(oxConnector.canHandle("OXZZZZZ")); + assertTrue(oxConnector.canHandle("OX1")); + assertFalse(oxConnector.canHandle("GCABCDE")); + assertFalse(oxConnector.canHandle("OX_")); + } + +} |