예제 #1
0
 protected internal virtual void printFooter(Result result)
 {
   if (result.wasSuccessful())
   {
     this.getWriter().println();
     this.getWriter().print("OK");
     this.getWriter().println(new StringBuilder().append(" (").append(result.getRunCount()).append(" test").append(result.getRunCount() != 1 ? "s" : "").append(")").toString());
   }
   else
   {
     this.getWriter().println();
     this.getWriter().println("FAILURES!!!");
     this.getWriter().println(new StringBuilder().append("Tests run: ").append(result.getRunCount()).append(",  Failures: ").append(result.getFailureCount()).toString());
   }
   this.getWriter().println();
 }
예제 #2
0
 protected internal virtual void printFailures(Result result)
 {
   List failures = result.getFailures();
   if (failures.size() == 0)
     return;
   if (failures.size() == 1)
     this.getWriter().println(new StringBuilder().append("There was ").append(failures.size()).append(" failure:").toString());
   else
     this.getWriter().println(new StringBuilder().append("There were ").append(failures.size()).append(" failures:").toString());
   int num1 = 1;
   Iterator iterator = failures.iterator();
   while (iterator.hasNext())
   {
     Failure each = (Failure) iterator.next();
     StringBuilder stringBuilder = new StringBuilder().append("");
     int num2 = num1;
     ++num1;
     string prefix = stringBuilder.append(num2).toString();
     this.printFailure(each, prefix);
   }
 }
예제 #3
0
 private PrintableResult([In] Result obj0)
 {
   base.\u002Ector();
   PrintableResult printableResult = this;
   this.result = obj0;
 }
예제 #4
0
 public override void testRunFinished(Result result)
 {
   this.printHeader(result.getRunTime());
   this.printFailures(result);
   this.printFooter(result);
 }
예제 #5
0
 public virtual void testRunFinished(Result result)
 {
 }