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

Comparing jsr166/src/test/tck/ExecutorsTest.java (file contents):
Revision 1.32 by jsr166, Mon Oct 4 03:34:21 2010 UTC vs.
Revision 1.33 by jsr166, Mon Oct 4 05:45:44 2010 UTC

# Line 223 | Line 223 | public class ExecutorsTest extends JSR16
223       *  Future.get on submitted tasks will time out if they compute too long.
224       */
225      public void testTimedCallable() throws Exception {
226 <        final Runnable sleeper =
227 <            new RunnableShouldThrow(InterruptedException.class) {
228 <                public void realRun() throws InterruptedException {
229 <                    Thread.sleep(LONG_DELAY_MS);
230 <                }};
226 >        final Runnable sleeper = new CheckedInterruptedRunnable() {
227 >            public void realRun() throws InterruptedException {
228 >                Thread.sleep(LONG_DELAY_MS);
229 >            }};
230          for (ExecutorService executor :
231                   new ExecutorService[] {
232                       Executors.newSingleThreadExecutor(),

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines