ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/tck/JSR166TestCase.java
(Generate patch)

Comparing jsr166/src/test/tck/JSR166TestCase.java (file contents):
Revision 1.178 by jsr166, Fri Oct 23 17:34:47 2015 UTC vs.
Revision 1.180 by jsr166, Mon Nov 9 05:43:39 2015 UTC

# Line 112 | Line 112 | import junit.framework.TestSuite;
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
# Line 277 | Line 276 | public class JSR166TestCase extends Test
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));

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines