diff options
Diffstat (limited to 'tests/src/cgeo/geocaching/list/PseudoListTest.java')
| -rw-r--r-- | tests/src/cgeo/geocaching/list/PseudoListTest.java | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/src/cgeo/geocaching/list/PseudoListTest.java b/tests/src/cgeo/geocaching/list/PseudoListTest.java new file mode 100644 index 0000000..8a138ef --- /dev/null +++ b/tests/src/cgeo/geocaching/list/PseudoListTest.java @@ -0,0 +1,18 @@ +package cgeo.geocaching.list; + +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++) { + assertFalse("pseudo lists shall not have a number shown in their title", Character.isDigit(title.charAt(i))); + } + } + + public static void testIsConcrete() throws Exception { + assertFalse("pseudo lists are not concrete lists", PseudoList.ALL_LIST.isConcrete()); + } + +} |
