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/src/cgeo/test | |
| 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/src/cgeo/test')
| -rw-r--r-- | tests/src/cgeo/test/Compare.java | 5 |
1 files changed, 4 insertions, 1 deletions
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()); |
