# | Line 624 | Line 624 | public class ThreadPoolExecutorTest exte | |
---|---|---|
624 | } | |
625 | ||
626 | /** | |
627 | < | * shutdownNow returns a list containing tasks that were not run |
627 | > | * shutdownNow returns a list containing tasks that were not run, |
628 | > | * and those tasks are drained from the queue |
629 | */ | |
630 | public void testShutdownNow() { | |
631 | final ThreadPoolExecutor p = | |
# | Line 642 | Line 643 | public class ThreadPoolExecutorTest exte | |
643 | } catch (SecurityException ok) { return; } | |
644 | } | |
645 | assertTrue(p.isShutdown()); | |
646 | + | assertTrue(p.getQueue().isEmpty()); |
647 | assertTrue(l.size() <= 4); | |
648 | } | |
649 |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |