Esempio n. 1
0
 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();
 }
Esempio n. 2
0
 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());
   }
 }
Esempio n. 3
0
 private void addEmptyContentMessage() throws Exception {
   response.add(formatter.messageForBlankHtml());
 }
Esempio n. 4
0
 protected void addLog() throws Exception {
   response.add(formatter.testSummary(assertionCounts));
   response.add(formatter.executionStatus(log));
 }