public class ReportBuilder extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_METHODS_PER_GRAPH |
| Constructor and Description |
|---|
ReportBuilder(ReportDataContainer reportDataContainer)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
net.sf.jasperreports.engine.JRDataSource |
buildDefaultTestReport(Map<String,Object> reportParameters)
Produces the main test datasource, which will be displayed in the details
band of the report
|
net.sf.jasperreports.engine.JRDataSource |
buildTestMethodDurationReport(Map<String,Object> reportParameters)
Produces the method duration datasource, which will be displayed in the details band of the report
|
Duration |
calculateTestDurationBean(String method,
List<TestMethodDuration> testMethodDurations)
Calculate the duration beans based on the test method duration beans
|
ReportTotalsBean |
createTestClassSummary(List<ReportTotalsBean> testReportTotalsList)
Produces the summary of the test class with statistics about totals
(passed/failed/exception etc.) This is all the summary of the test
methods accumulated
|
ReportTotalsBean |
createTestMethodSummary(List<TestResultBean> testResultBeans)
Produces the summary of the test methed with statistics about totals
(passed/failed/exception etc.)
|
Map<String,Duration> |
getMethodDurationBeans(Map<String,List<TestResultBean>> methodTestResults)
Get a map of key = method name, value = list of test result beans
Each individual TestResultBean has a list of TestMethodDuration bean (which hold the duration of each individual test method call)
|
public static final int MAX_METHODS_PER_GRAPH
public ReportBuilder(ReportDataContainer reportDataContainer)
reportDataContainer - public net.sf.jasperreports.engine.JRDataSource buildDefaultTestReport(Map<String,Object> reportParameters)
public net.sf.jasperreports.engine.JRDataSource buildTestMethodDurationReport(Map<String,Object> reportParameters)
reportParameters - public ReportTotalsBean createTestMethodSummary(List<TestResultBean> testResultBeans)
public ReportTotalsBean createTestClassSummary(List<ReportTotalsBean> testReportTotalsList)
public Map<String,Duration> getMethodDurationBeans(Map<String,List<TestResultBean>> methodTestResults)
methodTestResults - list of TestResultBeanpublic Duration calculateTestDurationBean(String method, List<TestMethodDuration> testMethodDurations)
item - test method calltestItemDurations - list of test item durationsCopyright © 2014. All rights reserved.