protected void close() throws Exception { response.add(HtmlUtil.getHtmlOfInheritedPage("PageFooter", page)); response.add(formatter.tail()); response.closeChunks(); response.addTrailingHeader("Exit-Code", String.valueOf(exitCode())); response.closeTrailer(); response.close(); }
protected void startHtml() throws Exception { if (response.isXmlFormat()) { testResultsDocument = XmlUtil.newDocument(); testResultsElement = testResultsDocument.createElement("testResults"); testResultsDocument.appendChild(testResultsElement); XmlUtil.addTextNode(testResultsDocument, testResultsElement, "rootPath", page.getName()); } else { buildHtml(); addToResponse(formatter.head()); } }
private void addEmptyContentMessage() throws Exception { response.add(formatter.messageForBlankHtml()); }
protected void addLog() throws Exception { response.add(formatter.testSummary(assertionCounts)); response.add(formatter.executionStatus(log)); }