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

Comparing jsr166/src/test/tck/ScheduledExecutorSubclassTest.java (file contents):
Revision 1.36 by jsr166, Mon Sep 14 03:27:11 2015 UTC vs.
Revision 1.37 by jsr166, Sun Sep 27 18:50:50 2015 UTC

# Line 705 | Line 705 | public class ScheduledExecutorSubclassTe
705      }
706  
707      /**
708 <     * shutdownNow returns a list containing tasks that were not run
708 >     * shutdownNow returns a list containing tasks that were not run,
709 >     * and those tasks are drained from the queue
710       */
711      public void testShutdownNow() {
712          CustomExecutor p = new CustomExecutor(1);
# Line 715 | Line 716 | public class ScheduledExecutorSubclassTe
716          try {
717              List<Runnable> l = p.shutdownNow();
718              assertTrue(p.isShutdown());
719 +            assertTrue(p.getQueue().isEmpty());
720              assertEquals(5, l.size());
721          } catch (SecurityException ok) {
722              // Allowed in case test doesn't have privs

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines