aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/cgeo/geocaching/test/cgDestinationTest.java
blob: 883c1abdc17300f942d5319db87951580a0d276f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package cgeo.geocaching.test;

import cgeo.geocaching.cgDestination;
import cgeo.geocaching.geopoint.Geopoint;

import android.test.AndroidTestCase;

import junit.framework.Assert;

public class cgDestinationTest extends AndroidTestCase {

    private cgDestination dest = null;

    @Override
    protected void setUp() throws Exception {
        super.setUp();
        dest = new cgDestination(1, 10000, new Geopoint(52.5, 9.33));
    }

    public void testSomething() {
        Assert.assertEquals(1, dest.getId());
        Assert.assertEquals(10000, dest.getDate());
        Assert.assertEquals(52.5, dest.getCoords().getLatitude());
        Assert.assertEquals(9.33, dest.getCoords().getLongitude());
    }
}