diff options
author | Bananeweizen <bananeweizen@gmx.de> | 2015-02-18 23:11:35 +0100 |
---|---|---|
committer | Bananeweizen <bananeweizen@gmx.de> | 2015-02-18 23:11:35 +0100 |
commit | 45fdd532dd57dc48cab99595db06f40b4ac74114 (patch) | |
tree | 9a38c1bbdbff684899be5655c17d4da71ade304d /tests | |
parent | e212c8a43ef6c0503837794b04f14362217a882f (diff) | |
download | cgeo-45fdd532dd57dc48cab99595db06f40b4ac74114.zip cgeo-45fdd532dd57dc48cab99595db06f40b4ac74114.tar.gz cgeo-45fdd532dd57dc48cab99595db06f40b4ac74114.tar.bz2 |
decode CZ cache ids
Diffstat (limited to 'tests')
-rw-r--r-- | tests/src/cgeo/geocaching/connector/oc/OCCZConnectorTest.java | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/src/cgeo/geocaching/connector/oc/OCCZConnectorTest.java b/tests/src/cgeo/geocaching/connector/oc/OCCZConnectorTest.java new file mode 100644 index 0000000..bf271b3 --- /dev/null +++ b/tests/src/cgeo/geocaching/connector/oc/OCCZConnectorTest.java @@ -0,0 +1,16 @@ +package cgeo.geocaching.connector.oc; + +import static org.assertj.core.api.Assertions.assertThat; + +import cgeo.geocaching.connector.oc.OCCZConnector; + +import junit.framework.TestCase; + +public class OCCZConnectorTest extends TestCase { + + public static void testGetGeocodeFromUrl() throws Exception { + final OCCZConnector connector = new OCCZConnector(); + assertThat(connector.getGeocodeFromUrl("http://opencaching.cz/viewcache.php?cacheid=610")).isEqualTo("OZ0262"); + } + +} |