277 |
|
PithyResultPrinter(java.io.PrintStream writer) { super(writer); } |
278 |
|
long runTime; |
279 |
|
public void startTest(Test test) {} |
280 |
< |
protected void printHeader(long runTime) { |
280 |
> |
protected void printHeader(long runTime) { |
281 |
|
this.runTime = runTime; // defer printing for later |
282 |
< |
} |
283 |
< |
protected void printFooter(TestResult result) { |
282 |
> |
} |
283 |
> |
protected void printFooter(TestResult result) { |
284 |
|
if (result.wasSuccessful()) { |
285 |
|
getWriter().println("OK (" + result.runCount() + " tests)" |
286 |
|
+ " Time: " + elapsedTimeAsString(runTime)); |