DefinitionListTest (not working JUnit Test)
[phpeclipse.git] / archive / org.plog4u.wiki.test / src / org / plog4u / wiki / test / filter / FilterTestSupport.java
1 package org.plog4u.wiki.test.filter;
2
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;
9
10 /**
11  * Support class for defning JUnit FilterTests.
12  *
13  */
14
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;
21
22   public FilterTestSupport(String s) {
23     super(s);
24     context = new BaseFilterContext();
25     context.setRenderContext(new BaseRenderContext());
26   }
27
28   protected void setUp() throws Exception {
29     super.setUp();
30     if (null != filter) {
31       filter.setInitialContext(new BaseInitialRenderContext());
32     }
33   }
34 }