private static String SRC = "build/fitnesse";
private static String SUITE_ROOT = "RestFixtureTests";
private static String FITNESSE_ROOT_PAGE = "FitNesseRoot";
public static void main(String... args) throws Exception {
ResponderFactory rFac = new ResponderFactory(SRC);
ComponentFactory componentFactory = new ComponentFactory();
WikiPageFactory pFac = new WikiPageFactory();
WikiPage root = pFac.makeRootPage(SRC, FITNESSE_ROOT_PAGE, componentFactory);
Request request = mock(Request.class);
when(request.getResource()).thenReturn(SUITE_ROOT);
when(request.getQueryString()).thenReturn("suite&format=xml");
verifyNoMoreInteractions(request);
Responder responder = rFac.makeResponder(request, root);
FitNesseContext context = new FitNesseContext(root);
context.rootDirectoryName = FITNESSE_ROOT_PAGE;
context.rootPath = SRC;
context.doNotChunk = true;
context.setRootPagePath();