diff options
| author | Samuel Tardieu <sam@rfc1149.net> | 2012-04-11 09:59:41 +0200 |
|---|---|---|
| committer | Samuel Tardieu <sam@rfc1149.net> | 2012-04-11 15:45:32 +0200 |
| commit | 138fb60259388ffe469e435a70f79e8676b96e05 (patch) | |
| tree | 626530910734bd51e4bc0444131fbc1c26099128 /tests/src/cgeo/geocaching/cgeoApplicationTest.java | |
| parent | 48cfc74434c22e2d54b32cc659877e648536e818 (diff) | |
| download | cgeo-138fb60259388ffe469e435a70f79e8676b96e05.zip cgeo-138fb60259388ffe469e435a70f79e8676b96e05.tar.gz cgeo-138fb60259388ffe469e435a70f79e8676b96e05.tar.bz2 | |
Implement equals() and hashCode() for Geopoint
Diffstat (limited to 'tests/src/cgeo/geocaching/cgeoApplicationTest.java')
| -rw-r--r-- | tests/src/cgeo/geocaching/cgeoApplicationTest.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/src/cgeo/geocaching/cgeoApplicationTest.java b/tests/src/cgeo/geocaching/cgeoApplicationTest.java index c4ab0e3..356eac9 100644 --- a/tests/src/cgeo/geocaching/cgeoApplicationTest.java +++ b/tests/src/cgeo/geocaching/cgeoApplicationTest.java @@ -242,7 +242,7 @@ public class cgeoApplicationTest extends ApplicationTestCase<cgeoapplication> { cgCache parsedCache = cgeoapplication.getInstance().loadCache(mockedCache.getGeocode(), LoadFlags.LOAD_CACHE_OR_DB); - assertEquals(Settings.isPremiumMember(), mockedCache.getCoords().isEqualTo(parsedCache.getCoords())); + assertEquals(Settings.isPremiumMember(), mockedCache.getCoords().equals(parsedCache.getCoords())); assertEquals(Settings.isPremiumMember(), parsedCache.isReliableLatLon()); // check update after switch strategy to FAST @@ -253,7 +253,7 @@ public class cgeoApplicationTest extends ApplicationTestCase<cgeoapplication> { parsedCache = cgeoapplication.getInstance().loadCache(mockedCache.getGeocode(), LoadFlags.LOAD_CACHE_OR_DB); - assertEquals(Settings.isPremiumMember(), mockedCache.getCoords().isEqualTo(parsedCache.getCoords())); + assertEquals(Settings.isPremiumMember(), mockedCache.getCoords().equals(parsedCache.getCoords())); assertEquals(Settings.isPremiumMember(), parsedCache.isReliableLatLon()); } finally { |
