aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/cgeo/geocaching/enumerations
diff options
context:
space:
mode:
authorBananeweizen <bananeweizen@gmx.de>2013-12-16 12:48:31 +0100
committerBananeweizen <bananeweizen@gmx.de>2013-12-16 12:48:31 +0100
commitfc124633817d4d15cd6bf58487f19a1d73e64459 (patch)
treeb3208a5c12fc2136bc0f38fe8ee7bc78b141d1ca /tests/src/cgeo/geocaching/enumerations
parent14874d409a6547bc36c3b3946d55a81ad61da97a (diff)
downloadcgeo-fc124633817d4d15cd6bf58487f19a1d73e64459.zip
cgeo-fc124633817d4d15cd6bf58487f19a1d73e64459.tar.gz
cgeo-fc124633817d4d15cd6bf58487f19a1d73e64459.tar.bz2
integrate extremcaching.com
* cherry-pick existing commits and have some basic tests * disable EC connector by default * fix faked geocodes during GPX import * parse wrongly encoded container size
Diffstat (limited to 'tests/src/cgeo/geocaching/enumerations')
-rw-r--r--tests/src/cgeo/geocaching/enumerations/CacheSizeTest.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/src/cgeo/geocaching/enumerations/CacheSizeTest.java b/tests/src/cgeo/geocaching/enumerations/CacheSizeTest.java
index 9c3063d..2f11dfc 100644
--- a/tests/src/cgeo/geocaching/enumerations/CacheSizeTest.java
+++ b/tests/src/cgeo/geocaching/enumerations/CacheSizeTest.java
@@ -27,4 +27,11 @@ public class CacheSizeTest extends AndroidTestCase {
assertEquals(size, CacheSize.getById(size.id.toUpperCase(Locale.US)));
}
}
+
+ public static void testGetByIdNumeric() {
+ assertEquals(CacheSize.REGULAR, CacheSize.getById("3"));
+ assertEquals(CacheSize.UNKNOWN, CacheSize.getById("0"));
+ assertEquals(CacheSize.UNKNOWN, CacheSize.getById("9"));
+ assertEquals(CacheSize.UNKNOWN, CacheSize.getById("-1"));
+ }
}