List<ReportTotalsBean> reportTotalsBeans = new ArrayList<ReportTotalsBean>();
// Add method totals for every method to the reportParameters. These
// will be showed in the column header band
for (String methodName : methodTestResults.keySet()) {
ReportTotalsBean createTestMethodSummary = this.createTestMethodSummary(methodTestResults.get(methodName));
// add totals percentage to method totals bean
createTestMethodSummary.setTotalsGraph(getPercentageImage(methodName, createTestMethodSummary));
reportParameters.put(methodName, createTestMethodSummary);
reportTotalsBeans.add(createTestMethodSummary);
}
ReportTotalsBean createTestClassSummary = this.createTestClassSummary(reportTotalsBeans);
// add totals percentage to class totals bean
createTestClassSummary.setTotalsGraph(getPercentageImage(className, createTestClassSummary));
reportParameters.put(className, createTestClassSummary);
}