diff options
author | blafoo <github@blafoo.de> | 2012-02-24 21:07:08 +0100 |
---|---|---|
committer | blafoo <github@blafoo.de> | 2012-02-24 21:07:59 +0100 |
commit | 6c1962fa89e672ce4edc7f1a5d99044d1f318d49 (patch) | |
tree | cf1da4ab87fd5f0b84e7f471dcdc87b2e013bb67 /tests/src/cgeo | |
parent | 82e5ec072c54c9b04bdbc411b3b9f06dc6ba381a (diff) | |
download | cgeo-6c1962fa89e672ce4edc7f1a5d99044d1f318d49.zip cgeo-6c1962fa89e672ce4edc7f1a5d99044d1f318d49.tar.gz cgeo-6c1962fa89e672ce4edc7f1a5d99044d1f318d49.tar.bz2 |
Unit tests fixed.
Diffstat (limited to 'tests/src/cgeo')
-rw-r--r-- | tests/src/cgeo/geocaching/GCConstantsTest.java | 2 | ||||
-rw-r--r-- | tests/src/cgeo/geocaching/connector/gc/GCConnectorTest.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/src/cgeo/geocaching/GCConstantsTest.java b/tests/src/cgeo/geocaching/GCConstantsTest.java index 131d298..eeb9cf7 100644 --- a/tests/src/cgeo/geocaching/GCConstantsTest.java +++ b/tests/src/cgeo/geocaching/GCConstantsTest.java @@ -36,6 +36,6 @@ public class GCConstantsTest extends AndroidTestCase { 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, "")); - assertTrue(BaseUtils.getMatch(session, GCConstants.PATTERN_USERSESSION, "").startsWith("123pNK")); + assertTrue(BaseUtils.getMatch(session, GCConstants.PATTERN_SESSIONTOKEN, "").startsWith("123pNK")); } } diff --git a/tests/src/cgeo/geocaching/connector/gc/GCConnectorTest.java b/tests/src/cgeo/geocaching/connector/gc/GCConnectorTest.java index 23f1316..4271dd4 100644 --- a/tests/src/cgeo/geocaching/connector/gc/GCConnectorTest.java +++ b/tests/src/cgeo/geocaching/connector/gc/GCConnectorTest.java @@ -19,7 +19,7 @@ public class GCConnectorTest extends AndroidTestCase { final Viewport viewport = new Viewport(new Geopoint("N 52° 25.369 E 9° 35.499"), new Geopoint("N 52° 25.371 E 9° 35.501")); SearchResult searchResult = GCBase.searchByViewport(viewport, tokens); assertTrue(searchResult != null); - assertEquals(7, searchResult.getCount()); + assertTrue(searchResult.getCount() > 130); assertTrue(searchResult.getGeocodes().contains("GC211WG")); // Spiel & Sport GC211WG N 52° 25.413 E 009° 36.049 } |