blob: f369b0e8d77d5ba8e49897e87543b85891e6a24b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
package cgeo.geocaching.enumerations;
import android.test.AndroidTestCase;
public class CacheAttributeTest extends AndroidTestCase {
public static void testTrimAttributeName() {
for (CacheAttribute attribute : CacheAttribute.values()) {
final String rawName = attribute.gcRawName;
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);
}
}
}
}
|