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.56 by jsr166, Mon Sep 28 02:41:29 2015 UTC vs.
Revision 1.57 by jsr166, Mon Sep 28 03:05:23 2015 UTC

# Line 673 | Line 673 | public class ScheduledExecutorTest exten
673          for (int i = 0; i < count; i++)
674              p.execute(waiter);
675          assertTrue(threadsStarted.await(LONG_DELAY_MS, MILLISECONDS));
676 +        assertEquals(poolSize, p.getActiveCount());
677 +        assertEquals(0, p.getCompletedTaskCount());
678          final List<Runnable> queuedTasks;
679          try {
680              queuedTasks = p.shutdownNow();
# Line 685 | Line 687 | public class ScheduledExecutorTest exten
687          assertTrue(p.awaitTermination(LONG_DELAY_MS, MILLISECONDS));
688          assertTrue(p.isTerminated());
689          assertEquals(poolSize, ran.get());
690 +        assertEquals(poolSize, p.getCompletedTaskCount());
691      }
692  
693      /**

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines