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.30 by jsr166, Sun May 29 07:01:17 2011 UTC vs.
Revision 1.32 by jsr166, Wed Sep 25 07:39:17 2013 UTC

# Line 6 | Line 6
6   * Pat Fisher, Mike Judd.
7   */
8  
9 + import junit.framework.*;
10   import java.util.concurrent.*;
11   import static java.util.concurrent.TimeUnit.MILLISECONDS;
12 < import java.util.concurrent.locks.*;
13 <
13 < import junit.framework.*;
12 > import java.util.concurrent.locks.Condition;
13 > import java.util.concurrent.locks.ReentrantLock;
14   import java.util.*;
15  
16   public class ThreadPoolExecutorSubclassTest extends JSR166TestCase {
# Line 1248 | Line 1248 | public class ThreadPoolExecutorSubclassT
1248          CustomTPE p = new CustomTPE();
1249          try {
1250              final CountDownLatch done = new CountDownLatch(1);
1251 <            final CheckedRunnable task = new CheckedRunnable() {
1251 >            p.execute(new CheckedRunnable() {
1252                  public void realRun() {
1253                      done.countDown();
1254 <                }};
1255 <            p.execute(task);
1254 >                }});
1255              await(p.afterCalled);
1256              assertEquals(0, done.getCount());
1257              assertTrue(p.afterCalled());

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines