
nl.praegus.fitnesse.responders.testHistory.TestHistoryLine Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of toolchain-fitnesse-plugin Show documentation
Show all versions of toolchain-fitnesse-plugin Show documentation
Auto-register autocomplete responder and add debug script table
package nl.praegus.fitnesse.responders.testHistory;
import fitnesse.reporting.history.PageHistory;
import java.time.LocalDateTime;
import java.time.ZoneId;
public class TestHistoryLine {
private final String pageName;
private final int numberOfTimesPassed;
private final int numberOfTimesFailed;
private final LocalDateTime MostRecentRunDate;
private final PageHistory.BarGraph barGraph;
public TestHistoryLine(PageHistory pageHistory){
this.pageName = pageHistory.getFullPageName();
this.numberOfTimesFailed = pageHistory.getFailures();
this.numberOfTimesPassed = pageHistory.getPasses();
this.MostRecentRunDate = pageHistory.getMaxDate().toInstant().atZone(ZoneId.systemDefault()).toLocalDateTime();
this.barGraph = pageHistory.getBarGraph();
}
public String getPageName() {
return pageName;
}
public int getNumberOfTimesFailed() {
return numberOfTimesFailed;
}
public int getNumberOfTimesPassed() {
return numberOfTimesPassed;
}
public LocalDateTime getMostRecentRunDate() {
return MostRecentRunDate;
}
public PageHistory.BarGraph getBarGraph(){
return barGraph;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy