Package fitnesse.reporting.history.SuiteExecutionReport

Examples of fitnesse.reporting.history.SuiteExecutionReport.PageHistoryReference


  @Test
  public void shouldRememberTestSummariesInReferences() throws Exception {
    performTest(13);
    List<PageHistoryReference> references = formatter.getPageHistoryReferences();
    assertEquals(1, references.size());
    PageHistoryReference pageHistoryReference = references.get(0);
    assertEquals(new TestSummary(1, 2, 3, 4), pageHistoryReference.getTestSummary());
    assertEquals(13, pageHistoryReference.getRunTimeInMillis());
  }
View Full Code Here


    assertFalse(report1.equals(report2));
  }

  @Test
  public void shouldNotBeEqualIfHaveDifferentReferences() throws Exception {
    report1.addPageHistoryReference(new PageHistoryReference("pageOne",1234, 9));
    report2.addPageHistoryReference(new PageHistoryReference("pageTwo",1234, 9));
    assertFalse(report1.equals(report2));
  }
View Full Code Here

    assertFalse(report1.equals(report2));
  }

  @Test
  public void shouldBeEqualIfReferencesAreTheSame() throws Exception {
    PageHistoryReference r1 = new PageHistoryReference("TestPage", 1111, 8);
    PageHistoryReference r2 = new PageHistoryReference("TestPage", 1111, 8);
    r1.setTestSummary(new TestSummary(3, 0, 0, 0));
    r2.setTestSummary(new TestSummary(3, 0, 0, 0));
    report1.addPageHistoryReference(r1);
    report2.addPageHistoryReference(r2);
    assertEquals(report1, report2);
  }
View Full Code Here

    assertFalse(report1.equals(report2));   
  }

  @Test
  public void shouldNotBeEqualIfRunTimesAreDifferent() throws Exception {
    report1.addPageHistoryReference(new PageHistoryReference("testPage", 1234, 5));
    report2.addPageHistoryReference(new PageHistoryReference("testPage", 1234, 6));
    assertFalse(report1.equals(report2));   
  }
View Full Code Here

  @Test
  public void shouldBeEqualWithAllFieldsEqual() throws Exception {
    report1.date = report2.date = new Date(1);
    report1.getFinalCounts().add(new TestSummary(4,5,6,7));
    report2.getFinalCounts().add(new TestSummary(4,5,6,7));
    PageHistoryReference r1a = new PageHistoryReference("testPage", 1234, 5);
    PageHistoryReference r2a = new PageHistoryReference("testPage", 1234, 5);
    PageHistoryReference r1b = new PageHistoryReference("myPage", 7734, 6);
    PageHistoryReference r2b = new PageHistoryReference("myPage", 7734, 6);
    report1.addPageHistoryReference(r1a);
    report1.addPageHistoryReference(r1b);
    report2.addPageHistoryReference(r2a);
    report2.addPageHistoryReference(r2b);
View Full Code Here

TOP

Related Classes of fitnesse.reporting.history.SuiteExecutionReport.PageHistoryReference

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.