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

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

# Line 651 | Line 651 | public class ScheduledExecutorTest exten
651      }
652  
653      /**
654 <     * shutdownNow returns a list containing tasks that were not run
654 >     * shutdownNow returns a list containing tasks that were not run,
655 >     * and those tasks are drained from the queue
656       */
657      public void testShutdownNow() {
658          ScheduledThreadPoolExecutor p = new ScheduledThreadPoolExecutor(1);
# Line 661 | Line 662 | public class ScheduledExecutorTest exten
662          try {
663              List<Runnable> l = p.shutdownNow();
664              assertTrue(p.isShutdown());
665 +            assertTrue(p.getQueue().isEmpty());
666              assertEquals(5, l.size());
667          } catch (SecurityException ok) {
668              // Allowed in case test doesn't have privs

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines