aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/src/cgeo/geocaching/list/PseudoListTest.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/src/cgeo/geocaching/list/PseudoListTest.java b/tests/src/cgeo/geocaching/list/PseudoListTest.java
index d120d81..3238678 100644
--- a/tests/src/cgeo/geocaching/list/PseudoListTest.java
+++ b/tests/src/cgeo/geocaching/list/PseudoListTest.java
@@ -1,14 +1,14 @@
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)));
+ for (int i = 0; i < title.length(); i++) {
+ assertFalse("pseudo lists shall not have a number shown in their title", Character.isDigit(title.charAt(i)));
+ }
}
public static void testIsConcrete() throws Exception {