112 |
|
* methods as there are exceptions the method can throw. Sometimes |
113 |
|
* there are multiple tests per JSR166 method when the different |
114 |
|
* "normal" behaviors differ significantly. And sometimes testcases |
115 |
< |
* cover multiple methods when they cannot be tested in |
116 |
< |
* isolation. |
115 |
> |
* cover multiple methods when they cannot be tested in isolation. |
116 |
|
* |
117 |
|
* <li>The documentation style for testcases is to provide as javadoc |
118 |
|
* a simple sentence or two describing the property that the testcase |
276 |
|
PithyResultPrinter(java.io.PrintStream writer) { super(writer); } |
277 |
|
long runTime; |
278 |
|
public void startTest(Test test) {} |
279 |
< |
protected void printHeader(long runTime) { |
279 |
> |
protected void printHeader(long runTime) { |
280 |
|
this.runTime = runTime; // defer printing for later |
281 |
< |
} |
282 |
< |
protected void printFooter(TestResult result) { |
281 |
> |
} |
282 |
> |
protected void printFooter(TestResult result) { |
283 |
|
if (result.wasSuccessful()) { |
284 |
|
getWriter().println("OK (" + result.runCount() + " tests)" |
285 |
|
+ " Time: " + elapsedTimeAsString(runTime)); |