From 45fdd532dd57dc48cab99595db06f40b4ac74114 Mon Sep 17 00:00:00 2001 From: Bananeweizen Date: Wed, 18 Feb 2015 23:11:35 +0100 Subject: decode CZ cache ids --- .../cgeo/geocaching/connector/oc/OCCZConnectorTest.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 tests/src/cgeo/geocaching/connector/oc/OCCZConnectorTest.java (limited to 'tests') 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"); + } + +} -- cgit v1.1