01: // Copyright (C) 2003,2004,2005 by Object Mentor, Inc. All rights reserved.
02: // Released under the terms of the GNU General Public License version 2 or later.
03: package fitnesse.responders;
04:
05: import fitnesse.testutil.*;
06: import fitnesse.wiki.*;
07: import fitnesse.http.*;
08: import fitnesse.*;
09:
10: public abstract class AbstractResponderRegex extends AbstractRegex {
11: protected WikiPage root;
12:
13: protected MockRequest request;
14:
15: protected Responder responder;
16:
17: protected PageCrawler crawler;
18:
19: protected FitNesseContext context;
20:
21: public void setUp() throws Exception {
22: root = InMemoryPage.makeRoot("RooT");
23: crawler = root.getPageCrawler();
24: request = new MockRequest();
25: responder = responderInstance();
26: context = new FitNesseContext(root);
27: }
28:
29: // Return an instance of the Responder being tested.
30: protected abstract Responder responderInstance();
31: }
|