From fb453e599fed716636b6056739f17e318d55d25c Mon Sep 17 00:00:00 2001 From: Bananeweizen Date: Sat, 21 Apr 2012 11:27:29 +0200 Subject: refactorings * always use CacheAttribute for attribute strings * avoid concatenation in append * use SparseArray instead of maps --- tests/src/cgeo/geocaching/enumerations/CacheAttributeTest.java | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'tests/src') diff --git a/tests/src/cgeo/geocaching/enumerations/CacheAttributeTest.java b/tests/src/cgeo/geocaching/enumerations/CacheAttributeTest.java index a15bd17..f369b0e 100644 --- a/tests/src/cgeo/geocaching/enumerations/CacheAttributeTest.java +++ b/tests/src/cgeo/geocaching/enumerations/CacheAttributeTest.java @@ -10,4 +10,14 @@ public class CacheAttributeTest extends AndroidTestCase { assertTrue("bad attribute name " + rawName, CacheAttribute.trimAttributeName(rawName).equals(rawName)); } } + + public static void testIds() { + for (CacheAttribute attribute : CacheAttribute.values()) { + if (attribute != CacheAttribute.UNKNOWN) { + assertTrue(attribute.drawableId != 0); + assertTrue(attribute.stringIdYes != 0); + assertTrue(attribute.stringIdNo != 0); + } + } + } } -- cgit v1.1