Package fitlibrary.batch.trinidad

Examples of fitlibrary.batch.trinidad.TestResult


  @Override
  public TestResult runTest(TestDescriptor test) {
    OutputStream tempOut = new ByteArrayOutputStream();
    OutputStream tempErr = new ByteArrayOutputStream();
    try {
      TestResult o = runTestMethod.invoke(this, new Object[] { test, tempOut, tempErr });
      return o;
    } catch (Exception e) {
      throw new JTesterException("Unable to invoke method[runTest].", e);
    }
  }
View Full Code Here


  private void runFitnesseWiki(final String name, WikiFile wikiFile) throws FileNotFoundException {
    String wiki = wikiFile.readWikiContent();
    wiki = decoratedWiki(wiki);
    String html = this.addCssFile(DbFitWikiPage.getHtml(wiki));
    TestDescriptor test = new InMemoryTestImpl(name, html);
    TestResult testResult = testRunner.runTest(test);
    // writeTestResult(testResult, fitDir, wikiFile);

    File htmlFile = wikiFile.mkTestedDir(fitDir);
    System.err.println(testResult.getName() + " right:" + testResult.getCounts().right + " wrong:"
        + testResult.getCounts().wrong + " exeptions: " + testResult.getCounts().exceptions);
    String resultHtml = testResult.getContent();
    ResourceHelper.writeStringToFile(htmlFile, resultHtml);
    try {
      this.isSuccess(testResult, name, wikiFile);
    } catch (FitRunException e) {
      ErrorRecorder.addError(wikiFile, resultHtml, e);
View Full Code Here

TOP

Related Classes of fitlibrary.batch.trinidad.TestResult

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.