use of com.evolveum.midpoint.tools.testng.TestReportSection in project midpoint by Evolveum.
the class TestReportUtil method addPrinterData.
private static void addPrinterData(TestMonitor testMonitor, String sectionName, AbstractStatisticsPrinter<?> printer) {
printer.prepare();
Data data = printer.getData();
Formatting formatting = printer.getFormatting();
TestReportSection section = testMonitor.addReportSection(sectionName).withColumns(formatting.getColumnLabels().toArray(new String[0]));
data.getRawDataStream().forEach(section::addRow);
}
Aggregations