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/utils/HtmlUtilsTest.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/utils/HtmlUtilsTest.java')
| -rw-r--r-- | tests/src/cgeo/geocaching/utils/HtmlUtilsTest.java | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/src/cgeo/geocaching/utils/HtmlUtilsTest.java b/tests/src/cgeo/geocaching/utils/HtmlUtilsTest.java index 5f2070d..65e86b8 100644 --- a/tests/src/cgeo/geocaching/utils/HtmlUtilsTest.java +++ b/tests/src/cgeo/geocaching/utils/HtmlUtilsTest.java @@ -1,5 +1,7 @@ package cgeo.geocaching.utils; +import static org.assertj.core.api.Assertions.assertThat; + import org.apache.commons.lang3.StringUtils; import junit.framework.TestCase; @@ -7,10 +9,10 @@ import junit.framework.TestCase; public class HtmlUtilsTest extends TestCase { public static void testExtractText() { - assertEquals(StringUtils.EMPTY, HtmlUtils.extractText(null)); - assertEquals(StringUtils.EMPTY, HtmlUtils.extractText(StringUtils.EMPTY)); - assertEquals(StringUtils.EMPTY, HtmlUtils.extractText(" ")); - assertEquals("bold", HtmlUtils.extractText("<b>bold</b>")); + assertThat(HtmlUtils.extractText(null)).isEqualTo(StringUtils.EMPTY); + assertThat(HtmlUtils.extractText(StringUtils.EMPTY)).isEqualTo(StringUtils.EMPTY); + assertThat(HtmlUtils.extractText(" ")).isEqualTo(StringUtils.EMPTY); + assertThat(HtmlUtils.extractText("<b>bold</b>")).isEqualTo("bold"); } } |
