Package fitnesse.util

Examples of fitnesse.util.TimeMeasurement


  private void addDummySuiteResult(File resultFile) throws Exception {
    SuiteExecutionReport report = new SuiteExecutionReport(fitNesseVersion, "SuitePage");
    report.date = DateTimeUtil.getDateFromString("12/5/1980 01:19:00");
    report.getFinalCounts().add(new TestSummary(4,5,6,7));
    TimeMeasurement timeMeasurement = mock(TimeMeasurement.class);
    when (timeMeasurement.elapsed()).thenReturn(12321L);
    report.setTotalRunTimeInMillis(timeMeasurement);
    long time = DateTimeUtil.getTimeFromString("12/5/1980 01:20:00");
    SuiteExecutionReport.PageHistoryReference r1 = new SuiteExecutionReport.PageHistoryReference("SuitePage.TestPageOne", time, 9);
    SuiteExecutionReport.PageHistoryReference r2 = new SuiteExecutionReport.PageHistoryReference("SuitePage.TestPageTwo", time, 11);
View Full Code Here


  private TimeMeasurement totalTimeMeasurement;


  public SuiteHtmlFormatter(FitNesseContext context, WikiPage page, CompositeExecutionLog log) {
    super(context, page, log);
    totalTimeMeasurement = new TimeMeasurement().start();
    testBasePathName = PathParser.render(page.getPageCrawler().getFullPath());
  }
View Full Code Here

    }
  }

  @Override
  public void testStarted(WikiTestPage testPage) {
    latestTestTime = new TimeMeasurement().start();
    super.testStarted(testPage);

    String fullPathName = testPage.getFullPath();

    announceStartNewTest(getRelativeName(), fullPathName);
View Full Code Here

    verify(mockResultsRepository).write("Hey there!");
  }

  @Test
  public void allTestingComplete_writesSummaryIfMainPageWasntExecuted() throws Exception{
    TimeMeasurement timeMeasurement = new TimeMeasurement().start();
    jf.testComplete(buildNestedTestPage(), new TestSummary(5,6,7,8));
    jf.close();
    verify(mockResultsRepository).open(suiteName);    
  }
View Full Code Here

      byte[] passwd = new byte[passwordSize];
      generator.nextBytes(passwd);
      inputs[i] = new String(passwd);
    }

    TimeMeasurement measurement = new TimeMeasurement().start();
    for (int i = 0; i < inputs.length; i++) {
      crypter.encrypt(inputs[i]);
    }
    long duration = measurement.elapsed();

    assertTrue(duration < 1000);
  }
View Full Code Here

    LOG.info("--complete: " + totalTimeMeasurement.elapsedSeconds() + " seconds--");
  }

  @Override
  public void testStarted(WikiTestPage test) {
    timeMeasurement = new TimeMeasurement().start();
  }
View Full Code Here

TOP

Related Classes of fitnesse.util.TimeMeasurement

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.