aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/cgeo/geocaching/cgeoApplicationTest.java
diff options
context:
space:
mode:
authorblafoo <github@blafoo.de>2012-01-23 23:36:50 +0100
committerblafoo <github@blafoo.de>2012-01-23 23:36:50 +0100
commitbc5309a0c0797eabaac834d971d27298fa8d786e (patch)
tree7e7ea8394f39670f5aa2e4fe2302752ecc3a921d /tests/src/cgeo/geocaching/cgeoApplicationTest.java
parentd14590aa4fa417a56972b894eb0bbf974964466e (diff)
downloadcgeo-bc5309a0c0797eabaac834d971d27298fa8d786e.zip
cgeo-bc5309a0c0797eabaac834d971d27298fa8d786e.tar.gz
cgeo-bc5309a0c0797eabaac834d971d27298fa8d786e.tar.bz2
Set instead of List to avoid caches multiple times in search results V2
Diffstat (limited to 'tests/src/cgeo/geocaching/cgeoApplicationTest.java')
-rw-r--r--tests/src/cgeo/geocaching/cgeoApplicationTest.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/src/cgeo/geocaching/cgeoApplicationTest.java b/tests/src/cgeo/geocaching/cgeoApplicationTest.java
index ebb4c07..1bb7b85 100644
--- a/tests/src/cgeo/geocaching/cgeoApplicationTest.java
+++ b/tests/src/cgeo/geocaching/cgeoApplicationTest.java
@@ -134,7 +134,7 @@ public class cgeoApplicationTest extends ApplicationTestCase<cgeoapplication> {
assertNotNull(search);
assertEquals(1, search.getGeocodes().size());
assertTrue(search.getGeocodes().contains(cache.getGeocode()));
- cgCache searchedCache = search.cacheList.get(0);
+ cgCache searchedCache = cgBase.getFirstElementFromSet(search.cacheList);
// coords must be null if the user is not logged in
assertNull(searchedCache.getCoords());