diff options
| author | Bananeweizen <bananeweizen@gmx.de> | 2013-09-14 17:23:41 +0200 |
|---|---|---|
| committer | Bananeweizen <bananeweizen@gmx.de> | 2013-09-14 17:23:41 +0200 |
| commit | 21d90f1d07977d8b4e2dc4d42501bdff57880888 (patch) | |
| tree | 2d8a3d8f62403f92216b4c3d4c4254f3d557c656 /tests/src | |
| parent | 947792ed914e4309ecb5159e9878ed15ea1125c9 (diff) | |
| download | cgeo-21d90f1d07977d8b4e2dc4d42501bdff57880888.zip cgeo-21d90f1d07977d8b4e2dc4d42501bdff57880888.tar.gz cgeo-21d90f1d07977d8b4e2dc4d42501bdff57880888.tar.bz2 | |
fix broken test
Diffstat (limited to 'tests/src')
| -rw-r--r-- | tests/src/cgeo/geocaching/list/PseudoListTest.java | 6 |
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 { |
