# | 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 |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |