diff options
| author | Bananeweizen <bananeweizen@gmx.de> | 2013-08-22 09:12:07 +0200 |
|---|---|---|
| committer | Bananeweizen <bananeweizen@gmx.de> | 2013-08-22 09:12:07 +0200 |
| commit | 9822393fe9273c77173c0f31a06460892b31f46b (patch) | |
| tree | a00180ff1e10a59bf330fbf7c7e21f9bb643796c /tests | |
| parent | 1a272f21373e43923e3e9a48e1256180d85dd912 (diff) | |
| download | cgeo-9822393fe9273c77173c0f31a06460892b31f46b.zip cgeo-9822393fe9273c77173c0f31a06460892b31f46b.tar.gz cgeo-9822393fe9273c77173c0f31a06460892b31f46b.tar.bz2 | |
fix #3155: adapt to website changes
* favorites counter
* found state
* spoiler images
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/src/cgeo/geocaching/connector/gc/GCConstantsTest.java | 2 | ||||
| -rw-r--r-- | tests/src/cgeo/test/Compare.java | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/tests/src/cgeo/geocaching/connector/gc/GCConstantsTest.java b/tests/src/cgeo/geocaching/connector/gc/GCConstantsTest.java index 2bec912..40062f1 100644 --- a/tests/src/cgeo/geocaching/connector/gc/GCConstantsTest.java +++ b/tests/src/cgeo/geocaching/connector/gc/GCConstantsTest.java @@ -10,7 +10,7 @@ public class GCConstantsTest extends AndroidTestCase { // adapt the following after downloading new mock html files public static final String MOCK_LOGIN_NAME = "JoSaMaJa"; - public static final int MOCK_CACHES_FOUND = 426; + public static final int MOCK_CACHES_FOUND = 484; public static void testLocation() { // GC37GFJ diff --git a/tests/src/cgeo/test/Compare.java b/tests/src/cgeo/test/Compare.java index e4e7aac..996b11c 100644 --- a/tests/src/cgeo/test/Compare.java +++ b/tests/src/cgeo/test/Compare.java @@ -7,6 +7,9 @@ import static junit.framework.Assert.assertTrue; import cgeo.geocaching.Geocache; import cgeo.geocaching.ICache; import cgeo.geocaching.enumerations.LogType; +import cgeo.geocaching.utils.CryptUtils; + +import org.apache.commons.lang3.StringUtils; public abstract class Compare { @@ -31,7 +34,7 @@ public abstract class Compare { assertTrue(actual.isReliableLatLon()); assertEquals(expected.isOwner(), actual.isOwner()); assertEquals(expected.getOwnerUserId(), actual.getOwnerUserId()); - assertEquals(expected.getHint(), actual.getHint()); + assertTrue(StringUtils.equals(expected.getHint(), actual.getHint()) || StringUtils.equals(expected.getHint(), CryptUtils.rot13(actual.getHint()))); assertTrue(actual.getDescription().startsWith(expected.getDescription())); assertEquals(expected.getShortDescription(), actual.getShortDescription()); assertEquals(expected.getCacheId(), actual.getCacheId()); |
