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.fixtures;
04:
05: import fit.Fixture;
06: import fitnesse.wiki.InMemoryPage;
07: import fitnesse.responders.*;
08: import fitnesse.*;
09:
10: public class SetUp extends Fixture {
11: public SetUp() throws Exception {
12: //TODO - MdM - There's got to be a better way.
13: WikiImportTestEventListener.register();
14:
15: FitnesseFixtureContext.root = InMemoryPage.makeRoot("RooT");
16: FitnesseFixtureContext.responderFactory = new ResponderFactory(
17: FitnesseFixtureContext.baseDir + "/RooT/");
18: FitnesseFixtureContext.context = new FitNesseContext(
19: FitnesseFixtureContext.root);
20: FitnesseFixtureContext.context.responderFactory = FitnesseFixtureContext.responderFactory;
21: FitnesseFixtureContext.context.port = 9123;
22: FitnesseFixtureContext.context.rootPagePath = FitnesseFixtureContext.baseDir;
23: FitnesseFixtureContext.fitnesse = new FitNesse(
24: FitnesseFixtureContext.context, false);
25:
26: FitnesseFixtureContext.fitnesse.start();
27: }
28: }
|