blob: 65e86b87a5e46ef8efc6d15924034b6a7864cbf4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
package cgeo.geocaching.utils;
import static org.assertj.core.api.Assertions.assertThat;
import org.apache.commons.lang3.StringUtils;
import junit.framework.TestCase;
public class HtmlUtilsTest extends TestCase {
public static void testExtractText() {
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");
}
}
|