diff options
| author | blafoo <github@blafoo.de> | 2011-12-17 10:05:14 +0100 |
|---|---|---|
| committer | blafoo <github@blafoo.de> | 2011-12-17 10:21:38 +0100 |
| commit | f2792d8f898556cf0ba26cd468946c8c9b49087a (patch) | |
| tree | 3d660bfcd84dc555bee64997e076dc323a78d651 /tests | |
| parent | a5851d2303f49dfdea5dba22e65cf08e1821f233 (diff) | |
| download | cgeo-f2792d8f898556cf0ba26cd468946c8c9b49087a.zip cgeo-f2792d8f898556cf0ba26cd468946c8c9b49087a.tar.gz cgeo-f2792d8f898556cf0ba26cd468946c8c9b49087a.tar.bz2 | |
Additional online tests
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/src/cgeo/geocaching/cgeoApplicationTest.java | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/tests/src/cgeo/geocaching/cgeoApplicationTest.java b/tests/src/cgeo/geocaching/cgeoApplicationTest.java index 34e62f9..a22ce94 100644 --- a/tests/src/cgeo/geocaching/cgeoApplicationTest.java +++ b/tests/src/cgeo/geocaching/cgeoApplicationTest.java @@ -2,6 +2,8 @@ package cgeo.geocaching; import cgeo.geocaching.enumerations.CacheType; import cgeo.geocaching.geopoint.Geopoint; +import cgeo.geocaching.test.RegExPerformanceTest; +import cgeo.geocaching.test.mock.MockedCache; import cgeo.geocaching.utils.CancellableHandler; import android.test.ApplicationTestCase; @@ -133,9 +135,19 @@ public class cgeoApplicationTest extends ApplicationTestCase<cgeoapplication> { } /** + * Test cache parsing. Esp. useful after a GC.com update + */ + public static void testCacheBasics() { + for (MockedCache mockedCache : RegExPerformanceTest.MOCKED_CACHES) { + cgCache parsedCache = cgeoApplicationTest.testSearchByGeocode(mockedCache.getGeocode()); + cgBaseTest.testCompareCaches(mockedCache, parsedCache); + } + } + + /** * Caches that are good test cases */ - public static void testSpecialties() { + public static void testCacheSpecialties() { cgCache GCV2R9 = cgeoApplicationTest.testSearchByGeocode("GCV2R9"); Assert.assertEquals("California, United States", GCV2R9.getLocation()); } |
