# | Line 461 | 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); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |