@Override public void renderOn(HtmlCanvas html) throws IOException { HtmlCanvas tbody = html .table(class_("table table-condensed")) .tbody(); for (File file : files) { tbody .tr() .td(class_(tdClass)).content(root.relativize(file.toPath()).toString()) ._tr(); } tbody ._tbody() ._table(); } }
@Override public void renderOn(HtmlCanvas html) throws IOException { HtmlCanvas tbody = html .table(class_("table table-condensed")) .tbody(); for (File file : files) { tbody .tr() .td(class_(tdClass)).content(root.relativize(file.toPath()).toString()) ._tr(); } tbody ._tbody() ._table(); } }
private void generateOverallSummaryReport(List<ISuite> suites, String id) throws IOException { html.table(class_("summary")); Date date = new Date(); for (ISuite suite : suites) {
private void createSkipExceptionTable(Throwable thrown) throws IOException { html.table(class_("indented")); html.tr(class_("center")).th(class_("Skipped")) .content("[SKIPPED TEST]")._tr(); html.tr().td().content(thrown.getMessage())._tr(); html._table(); }
/** * Render error reporting information using the (debug) html * @param html * @throws IOException */ public void renderForErrorOn(HtmlCanvas html) throws IOException { html.h3().write(this.getClass().getName())._h3(); html.table(border("1px").cellpadding("4px")); for (String key : attributes.keySet()) { Object value = attributes.get(key); html .tr() .td().write(key)._td() .td().write(value.toString())._td() ._tr(); } html._table(); } @Override
private void makeIndirectSummaryTable() throws IOException { html.table(class_("indented")); html.tr().th().a(id(("Indirect"))).write("Indirectly Tested Test Cases")._a()._th(); html.th().content("Overall Test Result");
writeImplementationGraph(classType.getSimpleName(), autoReq, unimReq, clientReq, manReq, indirect); html.table(class_("classes"));
private void createThrownTable(Throwable thrown) throws IOException { html.table(class_("indented")); html.tr(class_("center")).th(class_("Failed")).content("[FAILED TEST]") ._tr(); html.tr().td(class_("throw")).content(Utils.stackTrace(thrown, false)[0])._tr(); html._table(); }
@Override public void renderOn(HtmlCanvas html) throws IOException { HtmlCanvas tbody = html .table(class_("table table-striped table-condensed")) .tbody(); int id = 0; for (Pair<File, File> file : files) { tbody .tr() .td(class_("col-md-10")).content(comparator.getSrc().relativize(file.getFirst().toPath()).toString()) .td(class_("col-md-2")) .a(class_("btn btn-primary btn-xs").href("/diff/" + id)).content("diff") .write(" ") .a(class_("btn btn-primary btn-xs").href("/mergely/" + id)).content("mergely") .write(" ") .a(class_("btn btn-primary btn-xs").href("/script/" + id)).content("script") ._td() ._tr(); id++; } tbody ._tbody() ._table(); }
@Override public void renderOn(HtmlCanvas html) throws IOException { HtmlCanvas tbody = html .table(class_("table table-striped table-condensed")) .tbody(); int id = 0; for (Pair<File, File> file : files) { tbody .tr() .td(class_("col-md-10")).content(comparator.getSrc().relativize(file.getFirst().toPath()).toString()) .td(class_("col-md-2")) .a(class_("btn btn-primary btn-xs").href("/diff/" + id)).content("diff") .write(" ") .a(class_("btn btn-primary btn-xs").href("/mergely/" + id)).content("mergely") .write(" ") .a(class_("btn btn-primary btn-xs").href("/script/" + id)).content("script") ._td() ._tr(); id++; } tbody ._tbody() ._table(); }
/** * Add the table to the HTML canvas ready for rendering * * @param html html canvas * @param tableRows table rows, these should all be the same lenght * @param headers table headers * @param title itle of the table * @throws IOException if IO error occurs */ public void addTable(HtmlCanvas html, List<TableRow> tableRows, List<String> headers, String title) throws IOException { html.h2().content(title); html.table(); html.tr(); for (String header : headers) { html.th().content(header); } html._tr(); int i = 0; for (TableRow row : tableRows) { String clazz = (i % 2 == 0) ? "even" : "odd"; html.tr(class_(clazz)); for (String column : row.getCells()) { html.td().content(column); } html._tr(); i++; } html._table(); }
private void makeMethodSummaryTable(IResultMap tests, String title) throws IOException { html.table(class_("indented")); html.tr().th(class_(title)).a(id((title))).write(title + " Test Cases")._a()._th(); html.th(class_(title)).content("Groups");
public void generateTestCaseReportTable(HtmlCanvas htmlCanvas, IRunTestResults iRunTestResults) throws IOException { HtmlCanvas table = htmlCanvas.table(new HtmlAttributes().class_(TABLE_CLASS)); table.tr().th().content(TEST_NAME) .th(getClass(TEST_SUITES_CSS_CLASS)).content(TEST_SUITE) .th(getClass(STATUS_CSS_CLASS)).content(TEST_STATUS) .th().content(TEST_FLOW_PATH) .th().content(TEST_DESCRIPTION) .th().content(OUTPUTS) .th().content(EXCEPTION_OR_MESSAGE) ._tr(); appendTestRuns(table, iRunTestResults.getPassedTests(), PASSED); appendTestRuns(table, iRunTestResults.getFailedTests(), FAILED); appendTestRuns(table, iRunTestResults.getSkippedTests(), SKIPPED); }
html.table(border("0").class_("bodyTable table table-striped table-hover")). thead(). tr(class_("a")).
@Override public void renderOn(HtmlCanvas html) throws IOException { html. div(class_("section")). h3(id("Lifecycle_"+this.getPackagingName())).a(href("packaging-"+this.getPackagingName()+".html")).write(this.getPackagingName())._a()._h3(). table(border("0").class_("bodyTable table table-striped table-hover")). thead(). tr(class_("a")). th().write("Phase")._th(). th().write("Goal")._th(). _tr() ._thead(). tbody(); for (t3.LifecyclesUtils.Phase phase : this.getPhases()) { ((Phase) phase).renderOn(html); } html ._tbody() ._table() ._div(); }
protected void createSummaryReport() throws IOException { html.table(class_("summary")); html.tr().th().content("Totals"); html.th().content("Coverage");