package cgeo.geocaching.list;

import org.apache.commons.lang3.StringUtils;

import junit.framework.TestCase;

public class PseudoListTest extends TestCase {

    public static void testGetTitleAndCount() throws Exception {
        final String title = PseudoList.ALL_LIST.title;
        assertTrue("pseudo lists shall not have a number shown in their title", StringUtils.isAlpha(title.substring(1, title.length() - 1)));
    }

    public static void testIsConcrete() throws Exception {
        assertFalse("pseudo lists are not concrete lists", PseudoList.ALL_LIST.isConcrete());
    }

}

@@ -28,54 +28,8 @@
 t;%0A%0A
-import org.apache.commons.lang3.StringUtils;%0A%0A
 impo
@@ -227,16 +227,71 @@
 .title;%0A
+        for (int i = 0; i %3C title.length(); i++) %7B%0A    
         
@@ -300,11 +300,12 @@
 sert
-Tru
+Fals
 e(%22p
@@ -367,69 +367,54 @@
 e%22, 
-StringUtils.isAlpha(title.substring(1, title.length() - 1)));
+Character.isDigit(title.charAt(i)));%0A        %7D
 %0A   

fix broken test