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.10 by jsr166, Sat Nov 21 17:38:05 2009 UTC vs.
Revision 1.11 by jsr166, Sat Nov 21 19:31:58 2009 UTC

# Line 1356 | Line 1356 | public class ThreadPoolExecutorSubclassT
1356          ExecutorService e = new CustomTPE(2, 2, LONG_DELAY_MS, MILLISECONDS, new ArrayBlockingQueue<Runnable>(10));
1357          try {
1358              ArrayList<Callable<String>> l = new ArrayList<Callable<String>>();
1359 <            l.add(new StringTask());
1359 >            l.add(new Callable<String>() {
1360 >                      public String call() {
1361 >                          try {
1362 >                              latch.await();
1363 >                          } catch (InterruptedException ok) {}
1364 >                          return TEST_STRING;
1365 >                      }});
1366              l.add(null);
1367              e.invokeAny(l, MEDIUM_DELAY_MS, MILLISECONDS);
1368              shouldThrow();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines