--- /dev/null
+package org.plog4u.wiki.test.filter;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+import org.plog4u.wiki.filter.WikipediaFilter;
+
+public class BoldFilterTest extends FilterTestSupport {
+ public BoldFilterTest(String name) {
+ super(name);
+ }
+
+ protected void setUp() throws Exception {
+ filter = new WikipediaFilter();
+ super.setUp();
+ }
+
+ public static Test suite() {
+ return new TestSuite(BoldFilterTest.class);
+ }
+
+ public void testBold() {
+ assertEquals("<strong>Text</strong>", filter.filter("'''Text'''", context));
+ }
+
+ public void testBold2() {
+ // close tags if user forget it:
+ assertEquals("<strong>Text<em></em></strong>", filter.filter("'''Text''", context));
+ }
+
+ public void testBoldItalicStack() {
+ // close tags if user forget it:
+ assertEquals("<b>Text<i>hallo</i></b>", filter.filter("<b>Text<i>hallo", context));
+ }
+
+ public void testBoldWithPunctuation() {
+ assertEquals("<strong>Text</strong>:", filter.filter("'''Text''':", context));
+ }
+}
\ No newline at end of file