aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/cgeo/geocaching/DestinationTest.java
blob: 00249c46d34bc3eac3878c97b87584554c16539f (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
package cgeo.geocaching;

import static org.assertj.core.api.Assertions.assertThat;

import cgeo.geocaching.geopoint.Geopoint;

import android.test.AndroidTestCase;

public class DestinationTest extends AndroidTestCase {

    private Destination dest = null;

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

    public void testSomething() {
        assertThat(dest.getId()).isEqualTo(1);
        assertThat(dest.getDate()).isEqualTo(10000);
        assertThat(dest.getCoords().getLatitude()).isEqualTo(52.5);
        assertThat(dest.getCoords().getLongitude()).isEqualTo(9.33);
    }
}