Exemplo n.º 1
0
 protected internal virtual void printFooter(TestResult result)
 {
   if (result.wasSuccessful())
   {
     this.getWriter().println();
     this.getWriter().print("OK");
     this.getWriter().println(new StringBuilder().append(" (").append(result.runCount()).append(" test").append(result.runCount() != 1 ? "s" : "").append(")").toString());
   }
   else
   {
     this.getWriter().println();
     this.getWriter().println("FAILURES!!!");
     this.getWriter().println(new StringBuilder().append("Tests run: ").append(result.runCount()).append(",  Failures: ").append(result.failureCount()).append(",  Errors: ").append(result.errorCount()).toString());
   }
   this.getWriter().println();
 }
Exemplo n.º 2
0
 protected internal virtual void printErrors(TestResult result)
 {
   this.printDefects(result.errors(), result.errorCount(), "error");
 }