コード例 #1
0
ファイル: FitNesse.java プロジェクト: kchoudharyxi/CleanCode
 private static void printStartMessage(Arguments args, FitNesseContext context) {
   System.out.println("FitNesse (" + VERSION + ") Started...");
   System.out.print(context.toString());
   System.out.println(
       "\tpage version expiration set to " + args.getDaysTillVersionsExpire() + " days.");
   System.out.print(extraOutput);
 }
コード例 #2
0
ファイル: FitNesse.java プロジェクト: kchoudharyxi/CleanCode
  private static FitNesseContext loadContext(Arguments arguments) throws Exception {
    FitNesseContext context = new FitNesseContext();
    ComponentFactory componentFactory = new ComponentFactory(context.rootPath);
    context.port = arguments.getPort();
    context.rootPath = arguments.getRootPath();
    context.rootPageName = arguments.getRootDirectory();
    context.rootPagePath = context.rootPath + "/" + context.rootPageName;
    context.root =
        componentFactory.getRootPage(
            FileSystemPage.makeRoot(context.rootPath, context.rootPageName));
    context.responderFactory = new ResponderFactory(context.rootPagePath);
    context.logger = makeLogger(arguments);
    context.authenticator = makeAuthenticator(arguments.getUserpass(), componentFactory);
    context.htmlPageFactory = componentFactory.getHtmlPageFactory(new HtmlPageFactory());

    extraOutput = componentFactory.loadResponderPlugins(context.responderFactory);
    extraOutput += componentFactory.loadWikiWidgetPlugins();
    extraOutput += componentFactory.loadWikiWidgetInterceptors();
    extraOutput += componentFactory.loadContentFilter();

    WikiImportTestEventListener.register();

    return context;
  }
コード例 #3
0
ファイル: FitNesse.java プロジェクト: kchoudharyxi/CleanCode
 // TODO MdM. This boolean agument is annoying... please fix.
 public FitNesse(FitNesseContext context, boolean makeDirs) {
   this.context = context;
   context.fitnesse = this;
   if (makeDirs) establishRequiredDirectories();
 }