aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorrsudev <rasch@munin-soft.de>2012-02-12 21:39:30 +0100
committerrsudev <rasch@munin-soft.de>2012-02-12 21:46:19 +0100
commit564960153aa1ece79e88e246a7efffaeafe00db0 (patch)
treec657fecadecf91801baa92fddd1b4da10049a81a /tests
parenta212be0c0809434ffde7c179b4e831c3b127476e (diff)
downloadcgeo-564960153aa1ece79e88e246a7efffaeafe00db0.zip
cgeo-564960153aa1ece79e88e246a7efffaeafe00db0.tar.gz
cgeo-564960153aa1ece79e88e246a7efffaeafe00db0.tar.bz2
Fix #1040, waypoint types
Additionally introduces flag for 'final defined' in cache lists
Diffstat (limited to 'tests')
-rw-r--r--tests/src/cgeo/geocaching/cgWaypointTest.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/src/cgeo/geocaching/cgWaypointTest.java b/tests/src/cgeo/geocaching/cgWaypointTest.java
index 54ebb02..324d562 100644
--- a/tests/src/cgeo/geocaching/cgWaypointTest.java
+++ b/tests/src/cgeo/geocaching/cgWaypointTest.java
@@ -7,12 +7,12 @@ import android.test.AndroidTestCase;
public class cgWaypointTest extends AndroidTestCase {
public static void testOrder() {
- final cgWaypoint cache = new cgWaypoint("Final", WaypointType.FINAL);
- final cgWaypoint trailhead = new cgWaypoint("Trail head", WaypointType.TRAILHEAD);
- final cgWaypoint stage = new cgWaypoint("stage", WaypointType.STAGE);
- final cgWaypoint puzzle = new cgWaypoint("puzzle", WaypointType.PUZZLE);
- final cgWaypoint own = new cgWaypoint("own", WaypointType.OWN);
- final cgWaypoint parking = new cgWaypoint("parking", WaypointType.PARKING);
+ final cgWaypoint cache = new cgWaypoint("Final", WaypointType.FINAL, false);
+ final cgWaypoint trailhead = new cgWaypoint("Trail head", WaypointType.TRAILHEAD, false);
+ final cgWaypoint stage = new cgWaypoint("stage", WaypointType.STAGE, false);
+ final cgWaypoint puzzle = new cgWaypoint("puzzle", WaypointType.PUZZLE, false);
+ final cgWaypoint own = new cgWaypoint("own", WaypointType.OWN, true);
+ final cgWaypoint parking = new cgWaypoint("parking", WaypointType.PARKING, false);
assertTrue(trailhead.compareTo(puzzle) < 0);
assertTrue(trailhead.compareTo(stage) < 0);