aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/cgeo/geocaching/connector/oc/OCCZConnectorTest.java
blob: 52fc5c898021316e2d2bb5eef668bdaa80f02261 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package cgeo.geocaching.connector.oc;

import static org.assertj.core.api.Assertions.assertThat;
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");
        assertThat(connector.getGeocodeFromUrl("http://www.opencaching.de/viewcache.php?cacheid=151223")).isNull();
    }

}