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