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

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

# Line 699 | Line 699 | public class ThreadPoolExecutorSubclassT
699      }
700  
701      /**
702 <     * shutdownNow returns a list containing tasks that were not run
702 >     * shutdownNow returns a list containing tasks that were not run,
703 >     * and those tasks are drained from the queue
704       */
705      public void testShutdownNow() {
706          ThreadPoolExecutor p = new CustomTPE(1, 1, LONG_DELAY_MS, MILLISECONDS, new ArrayBlockingQueue<Runnable>(10));
# Line 714 | Line 715 | public class ThreadPoolExecutorSubclassT
715              } catch (SecurityException ok) { return; }
716          }
717          assertTrue(p.isShutdown());
718 +        assertTrue(p.getQueue().isEmpty());
719          assertTrue(l.size() <= 4);
720      }
721  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines