diff options
| author | campbeb <bpcampbell@gmail.com> | 2012-03-05 19:47:31 +0900 |
|---|---|---|
| committer | campbeb <bpcampbell@gmail.com> | 2012-03-05 19:47:31 +0900 |
| commit | 4ec2096ea5cec7ff003b183b8f69696baffdf093 (patch) | |
| tree | 85b1fc5bd587718ec495baf189f53f59ee603a67 /tests/src | |
| parent | 12e87a9d50ed2e58ed83d1db81c62d46c5bb8f4e (diff) | |
| download | cgeo-4ec2096ea5cec7ff003b183b8f69696baffdf093.zip cgeo-4ec2096ea5cec7ff003b183b8f69696baffdf093.tar.gz cgeo-4ec2096ea5cec7ff003b183b8f69696baffdf093.tar.bz2 | |
Refactor so all waypoint operations are done through the Cache object.
Check for editing a waypoint when adding.
Save cache after waypoint operations so finalDefined is set correctly.
Diffstat (limited to 'tests/src')
| -rw-r--r-- | tests/src/cgeo/geocaching/cgBaseTest.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/src/cgeo/geocaching/cgBaseTest.java b/tests/src/cgeo/geocaching/cgBaseTest.java index b9c3586..e6aa862 100644 --- a/tests/src/cgeo/geocaching/cgBaseTest.java +++ b/tests/src/cgeo/geocaching/cgBaseTest.java @@ -134,7 +134,7 @@ public class cgBaseTest extends AndroidTestCase { private static void assertWaypointsFromNote(final cgCache cache, Geopoint[] expected, String note) { cache.setPersonalNote(note); - cache.setWaypoints(new ArrayList<cgWaypoint>()); + cache.setWaypoints(new ArrayList<cgWaypoint>(), false); cache.parseWaypointsFromNote(); assertEquals(expected.length, cache.getWaypoints().size()); for (int i = 0; i < expected.length; i++) { |
