diff options
author | Bananeweizen <bananeweizen@gmx.de> | 2013-09-15 11:48:27 +0200 |
---|---|---|
committer | Bananeweizen <bananeweizen@gmx.de> | 2013-09-15 11:48:27 +0200 |
commit | d840331b2b260142dd7974281c05f83c2ddfc115 (patch) | |
tree | 2a22ba7a613f7580b34c2431f9624656759a6014 /tests/src/cgeo | |
parent | dfad93c9b7260e45d97dcb15c906b6a1df024372 (diff) | |
download | cgeo-d840331b2b260142dd7974281c05f83c2ddfc115.zip cgeo-d840331b2b260142dd7974281c05f83c2ddfc115.tar.gz cgeo-d840331b2b260142dd7974281c05f83c2ddfc115.tar.bz2 |
refactoring: increase test coverage
Diffstat (limited to 'tests/src/cgeo')
-rw-r--r-- | tests/src/cgeo/geocaching/list/PseudoListTest.java | 2 | ||||
-rw-r--r-- | tests/src/cgeo/geocaching/list/StoredListTest.java | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/tests/src/cgeo/geocaching/list/PseudoListTest.java b/tests/src/cgeo/geocaching/list/PseudoListTest.java index 3238678..8a138ef 100644 --- a/tests/src/cgeo/geocaching/list/PseudoListTest.java +++ b/tests/src/cgeo/geocaching/list/PseudoListTest.java @@ -5,7 +5,7 @@ import junit.framework.TestCase; public class PseudoListTest extends TestCase { public static void testGetTitleAndCount() throws Exception { - final String title = PseudoList.ALL_LIST.title; + 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))); } diff --git a/tests/src/cgeo/geocaching/list/StoredListTest.java b/tests/src/cgeo/geocaching/list/StoredListTest.java index 985236a..bc4ebe4 100644 --- a/tests/src/cgeo/geocaching/list/StoredListTest.java +++ b/tests/src/cgeo/geocaching/list/StoredListTest.java @@ -24,4 +24,8 @@ public class StoredListTest extends TestCase { public static void testConcrete() { assertTrue(getStandardList().isConcrete()); } + + public static void testTitleAndCountContainsTitle() { + assertTrue(getStandardList().getTitleAndCount().startsWith(getStandardList().getTitle())); + } } |