diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/src/cgeo/geocaching/connector/gc/GCConstantsTest.java | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/src/cgeo/geocaching/connector/gc/GCConstantsTest.java b/tests/src/cgeo/geocaching/connector/gc/GCConstantsTest.java index 1f4f074..980fcaa 100644 --- a/tests/src/cgeo/geocaching/connector/gc/GCConstantsTest.java +++ b/tests/src/cgeo/geocaching/connector/gc/GCConstantsTest.java @@ -33,6 +33,20 @@ public class GCConstantsTest extends AndroidTestCase { } } + /** + * Test that we can parse the cache find count of the user. + * <p> + * This test requires a real user name and password to be stored on the device or emulator. + * </p> + */ + + public static void testCacheCountOnline() { + Login.logout(); + Login.setActualCachesFound(0); + Login.login(); + assertTrue(Login.getActualCachesFound() > 0); + } + public static void testConstants() { String session = "userSession = new Groundspeak.Map.UserSession('aKWZ', userOptions:'XPTf', sessionToken:'123pNKwdktYGZL0xd-I7yqA6nm_JE1BDUtM4KcOkifin2TRCMutBd_PZE14Ohpffs2ZgkTnxTSnxYpBigK4hBA2', subscriberType: 3, enablePersonalization: true });"; assertEquals("aKWZ", BaseUtils.getMatch(session, GCConstants.PATTERN_USERSESSION, "")); |
