From 5d001f813364ef96988ab432d59e2a3c82dd60d5 Mon Sep 17 00:00:00 2001 From: Bananeweizen Date: Sat, 21 Feb 2015 07:09:09 +0100 Subject: avoid exception logged when searching a cache --- tests/src/cgeo/geocaching/connector/oc/OCCZConnectorTest.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/src/cgeo/geocaching/connector/oc/OCCZConnectorTest.java b/tests/src/cgeo/geocaching/connector/oc/OCCZConnectorTest.java index bf271b3..52fc5c8 100644 --- a/tests/src/cgeo/geocaching/connector/oc/OCCZConnectorTest.java +++ b/tests/src/cgeo/geocaching/connector/oc/OCCZConnectorTest.java @@ -1,9 +1,6 @@ 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 { @@ -11,6 +8,7 @@ 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"); + assertThat(connector.getGeocodeFromUrl("http://www.opencaching.de/viewcache.php?cacheid=151223")).isNull(); } } -- cgit v1.1