1 package org.plog4u.wiki.test.filter;
3 import junit.framework.TestCase;
4 import org.radeox.engine.context.BaseInitialRenderContext;
5 import org.radeox.engine.context.BaseRenderContext;
6 import org.radeox.filter.Filter;
7 import org.radeox.filter.context.BaseFilterContext;
8 import org.radeox.filter.context.FilterContext;
11 * Support class for defning JUnit FilterTests.
15 public class FilterTestSupport extends TestCase {
16 public static final String WINDOWS_NEWLINE = "\r\n";
17 public static final String UNIX_NEWLINE = "\n";
18 public static final String NEWLINE = WINDOWS_NEWLINE;
19 protected Filter filter;
20 protected FilterContext context;
22 public FilterTestSupport(String s) {
24 context = new BaseFilterContext();
25 context.setRenderContext(new BaseRenderContext());
28 protected void setUp() throws Exception {
31 filter.setInitialContext(new BaseInitialRenderContext());