aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/cgeo/geocaching/connector/gc/GCConstantsTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/src/cgeo/geocaching/connector/gc/GCConstantsTest.java')
-rw-r--r--tests/src/cgeo/geocaching/connector/gc/GCConstantsTest.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/src/cgeo/geocaching/connector/gc/GCConstantsTest.java b/tests/src/cgeo/geocaching/connector/gc/GCConstantsTest.java
index 15ad7a3..8298ad7 100644
--- a/tests/src/cgeo/geocaching/connector/gc/GCConstantsTest.java
+++ b/tests/src/cgeo/geocaching/connector/gc/GCConstantsTest.java
@@ -8,6 +8,10 @@ import android.text.Html;
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 = 419;
+
public static void testLocation() {
// GC37GFJ
assertEquals("Bretagne, France", parseLocation(" <span id=\"ctl00_ContentBody_Location\">In Bretagne, France</span><br />"));
@@ -22,7 +26,7 @@ public class GCConstantsTest extends AndroidTestCase {
public static void testCacheCount() {
assertCacheCount(1510, "<strong style=\"display:block\"> 1.510 Caches Found</strong>");
assertCacheCount(1510, "<strong style=\"display:block\"> 1,510 Caches Found</strong>");
- assertCacheCount(725, MockedCache.readCachePage("GC2CJPF")); // # of caches found by blafoo at the point of time creating the mocked data
+ assertCacheCount(MOCK_CACHES_FOUND, MockedCache.readCachePage("GC2CJPF"));
}
private static void assertCacheCount(final int count, final String html) {