Search in sources :

Example 1 with TestReportSection

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);
}
Also used : TestReportSection(com.evolveum.midpoint.tools.testng.TestReportSection)

Aggregations

TestReportSection (com.evolveum.midpoint.tools.testng.TestReportSection)1