diff options
| author | Bananeweizen <bananeweizen@gmx.de> | 2012-03-24 07:31:56 +0100 |
|---|---|---|
| committer | Bananeweizen <bananeweizen@gmx.de> | 2012-03-24 07:31:56 +0100 |
| commit | 2b5a1a7482178ec4773443cb1b0b2a174779a7da (patch) | |
| tree | ccf1ef23b7da51999fe40a414e65521280de5661 /tests/src/cgeo/geocaching/cgeoApplicationTest.java | |
| parent | 51f56540932d83cb81549b817fccbca495e54c5a (diff) | |
| download | cgeo-2b5a1a7482178ec4773443cb1b0b2a174779a7da.zip cgeo-2b5a1a7482178ec4773443cb1b0b2a174779a7da.tar.gz cgeo-2b5a1a7482178ec4773443cb1b0b2a174779a7da.tar.bz2 | |
refactoring: more encapsulation in SearchResult
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 89c46c4..91d2320 100644 --- a/tests/src/cgeo/geocaching/cgeoApplicationTest.java +++ b/tests/src/cgeo/geocaching/cgeoApplicationTest.java @@ -102,7 +102,7 @@ public class cgeoApplicationTest extends ApplicationTestCase<cgeoapplication> { public static cgCache testSearchByGeocode(final String geocode) { final SearchResult search = cgBase.searchByGeocode(geocode, null, 0, true, null); assertNotNull(search); - if (Settings.isPremiumMember() || search.error == null) { + if (Settings.isPremiumMember() || search.getError() == null) { assertEquals(1, search.getGeocodes().size()); assertTrue(search.getGeocodes().contains(geocode)); return cgeoapplication.getInstance().loadCache(geocode, LoadFlags.LOAD_CACHE_OR_DB); @@ -118,7 +118,7 @@ public class cgeoApplicationTest extends ApplicationTestCase<cgeoapplication> { public static void testSearchByGeocodeNotExisting() { final SearchResult search = cgBase.searchByGeocode("GC123456", null, 0, true, null); assertNotNull(search); - assertEquals(search.error, StatusCode.UNPUBLISHED_CACHE); + assertEquals(StatusCode.UNPUBLISHED_CACHE, search.getError()); } /** @@ -215,7 +215,7 @@ public class cgeoApplicationTest extends ApplicationTestCase<cgeoapplication> { public static void testSearchByUsername() { final SearchResult search = cgBase.searchByUsername(null, "blafoo", CacheType.WEBCAM, false); assertNotNull(search); - assertEquals(3, search.totalCnt); + assertEquals(3, search.getTotal()); assertTrue(search.getGeocodes().contains("GCP0A9")); } |
