aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/cgeo/geocaching/connector/ox/OXConnectorTest.java
blob: 77394de2911eb51b26e8d6e56d4a77268d2ea26d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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_"));
    }

}