--- jsr166/src/test/tck/JSR166TestCase.java 2010/10/11 05:40:41 1.62 +++ jsr166/src/test/tck/JSR166TestCase.java 2010/10/11 08:30:01 1.63 @@ -131,7 +131,7 @@ public class JSR166TestCase extends Test System.out.printf("%n%s: %d%n", toString(), elapsedMillis); } } - + /** * Runs all JSR166 unit tests using junit.textui.TestRunner */ @@ -807,6 +807,15 @@ public class JSR166TestCase extends Test } } + public Runnable possiblyInterruptedRunnable(final long timeoutMillis) { + return new CheckedRunnable() { + protected void realRun() { + try { + Thread.sleep(timeoutMillis); + } catch (InterruptedException ok) {} + }}; + } + public class MediumPossiblyInterruptedRunnable extends CheckedRunnable { protected void realRun() { try {