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

Comparing jsr166/src/test/tck/FutureTaskTest.java (file contents):
Revision 1.33 by jsr166, Thu Dec 20 04:58:53 2012 UTC vs.
Revision 1.35 by jsr166, Mon Jan 14 21:54:42 2013 UTC

# Line 7 | Line 7
7   */
8  
9   import junit.framework.*;
10 import java.security.Permission;
10   import java.util.concurrent.Callable;
11   import java.util.concurrent.CancellationException;
12   import java.util.concurrent.CountDownLatch;
# Line 462 | Line 461 | public class FutureTaskTest extends JSR1
461                      try {
462                          pleaseCancel.countDown();
463                          delay(LONG_DELAY_MS);
464 <                    } finally { throw new RuntimeException(); }
464 >                        shouldThrow();
465 >                    } catch (Throwable t) {
466 >                        assertTrue(t instanceof InterruptedException);
467 >                    }
468 >                    throw new RuntimeException();
469                  }});
470  
471          Thread t = newStartedThread(task);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines