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.37 by jsr166, Sun Apr 21 06:54:11 2013 UTC vs.
Revision 1.38 by jsr166, Wed Jun 19 05:54:45 2013 UTC

# Line 481 | Line 481 | public class FutureTaskTest extends JSR1
481                      try {
482                          pleaseCancel.countDown();
483                          delay(LONG_DELAY_MS);
484 <                        shouldThrow();
485 <                    } catch (Throwable t) {
486 <                        assertTrue(t instanceof InterruptedException);
487 <                    }
484 >                        threadShouldThrow();
485 >                    } catch (InterruptedException success) {
486 >                    } catch (Throwable t) { threadUnexpectedException(t); }
487                      throw new RuntimeException();
488                  }});
489  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines