diff options
| author | Michael Keppler <michael.keppler@gmx.de> | 2014-04-22 17:30:51 +0200 |
|---|---|---|
| committer | Michael Keppler <michael.keppler@gmx.de> | 2014-04-22 21:44:00 +0200 |
| commit | cc9aa8b1d2b9ec24f2c41e4a523c69edcf8c8ac0 (patch) | |
| tree | fca2712f72bb2759ef4e39c0235a8a5054f27013 /tests/src/cgeo/geocaching/list/PseudoListTest.java | |
| parent | 825b779844b280ba7c1effdd4185cc856eccdf5b (diff) | |
| download | cgeo-cc9aa8b1d2b9ec24f2c41e4a523c69edcf8c8ac0.zip cgeo-cc9aa8b1d2b9ec24f2c41e4a523c69edcf8c8ac0.tar.gz cgeo-cc9aa8b1d2b9ec24f2c41e4a523c69edcf8c8ac0.tar.bz2 | |
#2414 convert junit statements to assertj
This conversion is not complete, but the remaining statements are hard
to catch with regular expressions automatically.
Diffstat (limited to 'tests/src/cgeo/geocaching/list/PseudoListTest.java')
| -rw-r--r-- | tests/src/cgeo/geocaching/list/PseudoListTest.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/src/cgeo/geocaching/list/PseudoListTest.java b/tests/src/cgeo/geocaching/list/PseudoListTest.java index 8a138ef..3dec694 100644 --- a/tests/src/cgeo/geocaching/list/PseudoListTest.java +++ b/tests/src/cgeo/geocaching/list/PseudoListTest.java @@ -1,5 +1,6 @@ package cgeo.geocaching.list; +import static org.assertj.core.api.Assertions.assertThat; import junit.framework.TestCase; public class PseudoListTest extends TestCase { @@ -7,12 +8,12 @@ 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))); + assertThat(Character.isDigit(title.charAt(i))).overridingErrorMessage("pseudo lists shall not have a number shown in their title").isFalse(); } } public static void testIsConcrete() throws Exception { - assertFalse("pseudo lists are not concrete lists", PseudoList.ALL_LIST.isConcrete()); + assertThat(PseudoList.ALL_LIST.isConcrete()).overridingErrorMessage("pseudo lists are not concrete lists").isFalse(); } } |
