diff options
| author | Bananeweizen <bananeweizen@gmx.de> | 2012-03-03 10:27:59 +0100 |
|---|---|---|
| committer | Bananeweizen <bananeweizen@gmx.de> | 2012-03-03 10:27:59 +0100 |
| commit | f2835856dbb0b2865d842dd381f4e90601710438 (patch) | |
| tree | fcfa45b0c427282ba31599ead6fd422815a4af42 /tests/src/cgeo/geocaching/cgeoApplicationTest.java | |
| parent | cf88273bd153ddc46c0f3496c7f86343369ff176 (diff) | |
| download | cgeo-f2835856dbb0b2865d842dd381f4e90601710438.zip cgeo-f2835856dbb0b2865d842dd381f4e90601710438.tar.gz cgeo-f2835856dbb0b2865d842dd381f4e90601710438.tar.bz2 | |
refactoring: never set listId of cache to TEMPORARY_ID
* TEMPORARY_LIST_ID is already set in constructor
* setting it again afterwards can be wrong due to merging with caches
from DB
* setting listId is not necessary during parsing at all, it is set when
storing, moving or importing.
Diffstat (limited to 'tests/src/cgeo/geocaching/cgeoApplicationTest.java')
| -rw-r--r-- | tests/src/cgeo/geocaching/cgeoApplicationTest.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/src/cgeo/geocaching/cgeoApplicationTest.java b/tests/src/cgeo/geocaching/cgeoApplicationTest.java index 258e6d2..0f985a3 100644 --- a/tests/src/cgeo/geocaching/cgeoApplicationTest.java +++ b/tests/src/cgeo/geocaching/cgeoApplicationTest.java @@ -163,7 +163,7 @@ public class cgeoApplicationTest extends ApplicationTestCase<cgeoapplication> { */ @MediumTest public static void testSearchByCoords() { - final SearchResult search = cgBase.searchByCoords(null, new Geopoint("N 52° 24.972 E 009° 35.647"), CacheType.MYSTERY, 0, false); + final SearchResult search = cgBase.searchByCoords(null, new Geopoint("N 52° 24.972 E 009° 35.647"), CacheType.MYSTERY, false); assertNotNull(search); assertTrue(18 <= search.getGeocodes().size()); assertTrue(search.getGeocodes().contains("GC1RMM2")); @@ -174,7 +174,7 @@ public class cgeoApplicationTest extends ApplicationTestCase<cgeoapplication> { */ @MediumTest public static void testSearchByOwner() { - final SearchResult search = cgBase.searchByOwner(null, "blafoo", CacheType.MYSTERY, 0, false); + final SearchResult search = cgBase.searchByOwner(null, "blafoo", CacheType.MYSTERY, false); assertNotNull(search); assertEquals(3, search.getGeocodes().size()); assertTrue(search.getGeocodes().contains("GC36RT6")); @@ -185,7 +185,7 @@ public class cgeoApplicationTest extends ApplicationTestCase<cgeoapplication> { */ @MediumTest public static void testSearchByUsername() { - final SearchResult search = cgBase.searchByUsername(null, "blafoo", CacheType.WEBCAM, 0, false); + final SearchResult search = cgBase.searchByUsername(null, "blafoo", CacheType.WEBCAM, false); assertNotNull(search); assertEquals(3, search.totalCnt); assertTrue(search.getGeocodes().contains("GCP0A9")); |
