Package fitnesse

Examples of fitnesse.Arguments


         return wikiFormatClasspath;
    }

  public void launchFitNesseServer(
        final String port, final String workingDir, final String root, final String logDir) throws Exception {
        final Arguments arguments = new Arguments();
        arguments.setCommand(null);
        arguments.setInstallOnly(false);
        arguments.setOmitUpdates(true);
        arguments.setDaysTillVersionsExpire("0");
        arguments.setPort(port);
        arguments.setRootPath(workingDir);
        arguments.setRootDirectory(root);
        if(logDir != null && !logDir.trim().equals("")) {
            arguments.setLogDirectory(logDir);
        }
        FitNesseMain.launchFitNesse(arguments);
    }
View Full Code Here


  public TestSummary run(final Launch launch, final int port) throws Exception {
    JavaFormatter testFormatter = JavaFormatter.getInstance(launch.getPageName());
    testFormatter.setResultsRepository(
            new JavaFormatter.FolderResultsRepository(this.outputPath));
    testFormatter.setListener(resultListener);
    Arguments arguments = new Arguments();
    arguments.setDaysTillVersionsExpire("0");
    arguments.setInstallOnly(false);
    arguments.setOmitUpdates(true);
    arguments.setPort(String.valueOf(port));
    arguments.setRootPath(this.fitNesseRootPath);
    arguments.setCommand(launch.getCommand(this.debug));
    FitNesseMain.dontExitAfterSingleCommand = true;
    FitNesseMain.launchFitNesse(arguments);
    return testFormatter.getTotalSummary();
  }
View Full Code Here

  }
 
  @Ignore
  @Test
  public void testLaunchFailure() throws Exception {
    Arguments arguments = new Arguments();
    //arguments.setCommand("command");
    arguments.setPort(PORT);
    FitNesse fitnesse = FitNesseMain.launchFitNesse(arguments);
    Assert.assertNotNull(fitnesse);
    try {
      FitNesseMain.launchFitNesse(arguments);
      Assert.fail("Expected MojoExecutionException");
View Full Code Here

TOP

Related Classes of fitnesse.Arguments

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.