diff options
| author | Bananeweizen <bananeweizen@gmx.de> | 2014-01-12 08:36:10 +0100 |
|---|---|---|
| committer | Bananeweizen <bananeweizen@gmx.de> | 2014-01-12 08:36:10 +0100 |
| commit | f1f38d264084d5044998abb5d7587e147afdf769 (patch) | |
| tree | 1fb006e9b1bf3ca2b95820c1f13165cf1aaf2cab /tests/src/cgeo/geocaching/connector/gc/GCParserTest.java | |
| parent | 1e663778359c192d674e2ab9f77480bdba609be5 (diff) | |
| download | cgeo-f1f38d264084d5044998abb5d7587e147afdf769.zip cgeo-f1f38d264084d5044998abb5d7587e147afdf769.tar.gz cgeo-f1f38d264084d5044998abb5d7587e147afdf769.tar.bz2 | |
refactoring: remove unused code
Diffstat (limited to 'tests/src/cgeo/geocaching/connector/gc/GCParserTest.java')
| -rw-r--r-- | tests/src/cgeo/geocaching/connector/gc/GCParserTest.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/src/cgeo/geocaching/connector/gc/GCParserTest.java b/tests/src/cgeo/geocaching/connector/gc/GCParserTest.java index 53c393b..1509563 100644 --- a/tests/src/cgeo/geocaching/connector/gc/GCParserTest.java +++ b/tests/src/cgeo/geocaching/connector/gc/GCParserTest.java @@ -178,9 +178,10 @@ public class GCParserTest extends AbstractResourceInstrumentationTestCase { cache.setPersonalNote(note); cache.setWaypoints(new ArrayList<Waypoint>(), false); cache.parseWaypointsFromNote(); - assertEquals(expected.length, cache.getWaypoints().size()); + final List<Waypoint> waypoints = cache.getWaypoints(); + assertEquals(expected.length, waypoints.size()); for (int i = 0; i < expected.length; i++) { - assertTrue(expected[i].equals(cache.getWaypoint(i).getCoords())); + assertTrue(expected[i].equals(waypoints.get(i).getCoords())); } } |
