void buildTableFooterRows(table table, ReportBuilderArgs args) { tfoot footer = new tfoot(); footer.setPrettyPrint(true); table.addElement(footer); for (GridRow row : getFooterRows()) { row.build(footer, args); } }
void buildTableHeaderRows(table table, ReportBuilderArgs args) { thead header = new thead(); header.setPrettyPrint(true); table.addElement(header); for (GridRow row : getHeaderRows()) { row.build(header, args); } }
void buildTableWithoutGroups(table table, ReportBuilderArgs args) { tbody tbody = new tbody(); tbody.setPrettyPrint(true); table.addElement(tbody); for (Object[] dataRow : args.getCurrentDataSet().getRows()) { // build rows (<tr>) for (GridRow row : getRows()) { args.setCurrentDataRow(dataRow); row.build(tbody, args); } } }
void buildTableWithGroups(table table, ReportBuilderArgs args) { // 1) Need to sort groups (desc?) // 2) Need to sort data based on groups?? do we?? i don't know! // 3) Render header rows // 4) Render body rows // 5) Render footer rows tbody tbody = new tbody(); tbody.setPrettyPrint(true); table.addElement(tbody); for (Object[] dataRow : args.getCurrentDataSet().getRows()) { // build rows (<tr>) for (GridRow row : getRows()) { args.setCurrentDataRow(dataRow); row.build(tbody, args); } } }
@Test(dataProvider = "testConstructorPathDataProvider1") public void getPathSelectorCorrectlyFromConstructors1(GridRow gridRow, String expectedXpath) { Assert.assertEquals(gridRow.getXPath(), expectedXpath); }