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

Comparing jsr166/src/test/tck/ThreadPoolExecutorTest.java (file contents):
Revision 1.61 by jsr166, Mon Sep 28 02:41:29 2015 UTC vs.
Revision 1.62 by jsr166, Mon Sep 28 03:05:23 2015 UTC

# Line 647 | Line 647 | public class ThreadPoolExecutorTest exte
647          for (int i = 0; i < count; i++)
648              p.execute(waiter);
649          assertTrue(threadsStarted.await(LONG_DELAY_MS, MILLISECONDS));
650 +        assertEquals(poolSize, p.getActiveCount());
651 +        assertEquals(0, p.getCompletedTaskCount());
652          final List<Runnable> queuedTasks;
653          try {
654              queuedTasks = p.shutdownNow();
# Line 659 | Line 661 | public class ThreadPoolExecutorTest exte
661          assertTrue(p.awaitTermination(LONG_DELAY_MS, MILLISECONDS));
662          assertTrue(p.isTerminated());
663          assertEquals(poolSize, ran.get());
664 +        assertEquals(poolSize, p.getCompletedTaskCount());
665      }
666  
667      // Exception Tests

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines