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.ResponderFactory;
08: import fitnesse.*;
09:
10: public class SetUp extends Fixture {
11: public SetUp() throws Exception {
12: FitnesseFixtureContext.root = InMemoryPage.makeRoot("RooT");
13: FitnesseFixtureContext.responderFactory = new ResponderFactory(
14: FitnesseFixtureContext.baseDir + "/RooT/");
15: FitnesseFixtureContext.context = new FitNesseContext(
16: FitnesseFixtureContext.root);
17: FitnesseFixtureContext.context.responderFactory = FitnesseFixtureContext.responderFactory;
18: FitnesseFixtureContext.context.port = 9123;
19: FitnesseFixtureContext.context.rootPagePath = FitnesseFixtureContext.baseDir;
20: FitnesseFixtureContext.fitnesse = new FitNesse(
21: FitnesseFixtureContext.context, false);
22:
23: FitnesseFixtureContext.fitnesse.start();
24: }
25: }
|