aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/cgeo/geocaching/DestinationTest.java
diff options
context:
space:
mode:
authorBananeweizen <bananeweizen@gmx.de>2012-04-19 08:13:50 +0200
committerBananeweizen <bananeweizen@gmx.de>2012-04-19 08:13:50 +0200
commit8e0b242e12d93ef2ee350819eda71a4148a4164e (patch)
tree6a5abfde85a03aa519628051b5fde0c02c309ce3 /tests/src/cgeo/geocaching/DestinationTest.java
parent580e98d2f6b89c001fb69626d67a778717e049a1 (diff)
downloadcgeo-8e0b242e12d93ef2ee350819eda71a4148a4164e.zip
cgeo-8e0b242e12d93ef2ee350819eda71a4148a4164e.tar.gz
cgeo-8e0b242e12d93ef2ee350819eda71a4148a4164e.tar.bz2
refactoring: renames and encapsulation
Diffstat (limited to 'tests/src/cgeo/geocaching/DestinationTest.java')
-rw-r--r--tests/src/cgeo/geocaching/DestinationTest.java25
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/src/cgeo/geocaching/DestinationTest.java b/tests/src/cgeo/geocaching/DestinationTest.java
new file mode 100644
index 0000000..26caacd
--- /dev/null
+++ b/tests/src/cgeo/geocaching/DestinationTest.java
@@ -0,0 +1,25 @@
+package cgeo.geocaching;
+
+import cgeo.geocaching.geopoint.Geopoint;
+
+import android.test.AndroidTestCase;
+
+import junit.framework.Assert;
+
+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() {
+ 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