diff options
| author | Samuel Tardieu <sam@rfc1149.net> | 2014-12-16 21:17:37 +0100 |
|---|---|---|
| committer | Samuel Tardieu <sam@rfc1149.net> | 2014-12-16 21:17:37 +0100 |
| commit | 7e36094fea4f1bb9f3d35f3faa732c74f321ba5e (patch) | |
| tree | e6b2bbda9372319e482960d6d0dcf62f749f2385 /tests/src/cgeo/geocaching/CgeoApplicationTest.java | |
| parent | b9c23238f043e9d86808f27beb70e533f45f97c3 (diff) | |
| parent | eb049cd9ebff77da7cb59a338cdfc836e9e908fb (diff) | |
| download | cgeo-7e36094fea4f1bb9f3d35f3faa732c74f321ba5e.zip cgeo-7e36094fea4f1bb9f3d35f3faa732c74f321ba5e.tar.gz cgeo-7e36094fea4f1bb9f3d35f3faa732c74f321ba5e.tar.bz2 | |
Merge branch 'release' into upstream
Diffstat (limited to 'tests/src/cgeo/geocaching/CgeoApplicationTest.java')
| -rw-r--r-- | tests/src/cgeo/geocaching/CgeoApplicationTest.java | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/tests/src/cgeo/geocaching/CgeoApplicationTest.java b/tests/src/cgeo/geocaching/CgeoApplicationTest.java index 8645907..c00f549 100644 --- a/tests/src/cgeo/geocaching/CgeoApplicationTest.java +++ b/tests/src/cgeo/geocaching/CgeoApplicationTest.java @@ -396,17 +396,11 @@ public class CgeoApplicationTest extends CGeoTestCase { */ public static void testSearchByGeocodeBasis() { for (MockedCache mockedCache : RegExPerformanceTest.MOCKED_CACHES) { - String oldUser = mockedCache.getMockedDataUser(); + final String oldUser = mockedCache.getMockedDataUser(); try { mockedCache.setMockedDataUser(Settings.getUsername()); - Geocache parsedCache = CgeoApplicationTest.testSearchByGeocode(mockedCache.getGeocode()); - if (null != parsedCache) { - // fake found flag for one cache until it will be updated - if (parsedCache.getGeocode().equals("GC3XX5J") && Settings.getUsername().equals("mucek4")) { - parsedCache.setFound(false); - } - Compare.assertCompareCaches(mockedCache, parsedCache, true); - } + final Geocache parsedCache = CgeoApplicationTest.testSearchByGeocode(mockedCache.getGeocode()); + Compare.assertCompareCaches(mockedCache, parsedCache, true); } finally { mockedCache.setMockedDataUser(oldUser); } |
