this.testSystemListener = testSystemListener;
return this;
}
public FitNesseContext makeFitNesseContext() throws IOException, PluginException {
ComponentFactory componentFactory = new ComponentFactory(properties);
if (port == null) {
port = getPort();
}
FitNesseVersion version = new FitNesseVersion();
updateFitNesseProperties(version);
WikiPageFactory wikiPageFactory = (WikiPageFactory) componentFactory.createComponent(WIKI_PAGE_FACTORY_CLASS, FileSystemPageFactory.class);
if (versionsController == null) {
versionsController = (VersionsController) componentFactory.createComponent(VERSIONS_CONTROLLER_CLASS, ZipFileVersionsController.class);
Integer versionDays = getVersionDays();
if (versionDays != null) {
versionsController.setHistoryDepth(versionDays);
}
}
if (recentChanges == null) {
recentChanges = (RecentChanges) componentFactory.createComponent(RECENT_CHANGES_CLASS, RecentChangesWikiPage.class);
}
if (root == null) {
root = wikiPageFactory.makePage(new File(rootPath, rootDirectoryName), rootDirectoryName, null);
}