initial code;
[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   protected Filter filter;
17   protected FilterContext context;
18
19   public FilterTestSupport(String s) {
20     super(s);
21     context = new BaseFilterContext();
22     context.setRenderContext(new BaseRenderContext());
23   }
24
25   protected void setUp() throws Exception {
26     super.setUp();
27     if (null != filter) {
28       filter.setInitialContext(new BaseInitialRenderContext());
29     }
30   }
31 }