aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/cgeo/geocaching/TrackableTest.java
blob: b52139adaece49c9f62a7477fc5324e6276bb4c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package cgeo.geocaching;

import android.test.AndroidTestCase;

public class TrackableTest extends AndroidTestCase {

    public static void testGetGeocode() {
        cgTrackable trackable = new cgTrackable();
        trackable.setGeocode("tb1234");
        assertEquals("TB1234", trackable.getGeocode());
    }

    public static void testSetLogsNull() {
        cgTrackable trackable = new cgTrackable();
        trackable.setLogs(null);
        assertNotNull("Trackable logs must not be null!", trackable.getLogs());
    }
}