package org.plog4u.wiki.test.filter; import junit.framework.Test; import junit.framework.TestSuite; import org.plog4u.wiki.filter.WikipediaFilter; public class HTTPUrlFilterTest extends FilterTestSupport { public HTTPUrlFilterTest(String name) { super(name); } protected void setUp() throws Exception { filter = new WikipediaFilter(); super.setUp(); } public static Test suite() { return new TestSuite(HTTPUrlFilterTest.class); } public void testUrl() { assertEquals("see http://www.plog4u.de ", filter.filter("see http://www.plog4u.de ", context)); } public void testUrl2() { assertEquals("see http://www.plog4u.de/index.php&test_me ", filter.filter("see http://www.plog4u.de/index.php&test_me ", context)); } }