blob: 3dec6944284b48f404465a60375e95c94b6baaf7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
package cgeo.geocaching.list;
import static org.assertj.core.api.Assertions.assertThat;
import junit.framework.TestCase;
public class PseudoListTest extends TestCase {
public static void testGetTitleAndCount() throws Exception {
final String title = PseudoList.ALL_LIST.getTitleAndCount();
for (int i = 0; i < title.length(); i++) {
assertThat(Character.isDigit(title.charAt(i))).overridingErrorMessage("pseudo lists shall not have a number shown in their title").isFalse();
}
}
public static void testIsConcrete() throws Exception {
assertThat(PseudoList.ALL_LIST.isConcrete()).overridingErrorMessage("pseudo lists are not concrete lists").isFalse();
}
}
|