diff options
Diffstat (limited to 'tests/src/cgeo/geocaching/cgDestinationTest.java')
| -rw-r--r-- | tests/src/cgeo/geocaching/cgDestinationTest.java | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/src/cgeo/geocaching/cgDestinationTest.java b/tests/src/cgeo/geocaching/cgDestinationTest.java new file mode 100644 index 0000000..1d7b341 --- /dev/null +++ b/tests/src/cgeo/geocaching/cgDestinationTest.java @@ -0,0 +1,26 @@ +package cgeo.geocaching; + +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()); + } +}
\ No newline at end of file |
