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("Text", filter.filter("'''Text'''", context)); } public void testBold2() { // close tags if user forget it: assertEquals("Text", filter.filter("'''Text''", context)); } public void testBoldItalicStack() { // close tags if user forget it: assertEquals("Texthallo", filter.filter("Texthallo", context)); } public void testBoldWithPunctuation() { assertEquals("Text:", filter.filter("'''Text''':", context)); } }