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

Comparing jsr166/src/test/tck/ExecutorCompletionServiceTest.java (file contents):
Revision 1.4 by dl, Fri Jul 8 20:00:10 2005 UTC vs.
Revision 1.6 by dl, Fri Aug 5 19:15:48 2005 UTC

# Line 10 | Line 10
10   import junit.framework.*;
11   import java.util.*;
12   import java.util.concurrent.*;
13 + import java.util.concurrent.atomic.*;
14   import java.math.BigInteger;
15   import java.security.*;
16  
# Line 213 | Line 214 | public class ExecutorCompletionServiceTe
214               new ExecutorCompletionService<String>(e);
215           try {
216               assertNull(ecs.poll());
217 <             Callable<String> c = new StringTask();
218 <             Future f1 = ecs.submit(c);
217 >             Runnable r = new NoOpRunnable();
218 >             Future f1 = ecs.submit(r, null);
219               assertTrue("submit must return MyRunnableFuture",
220                          f1 instanceof MyRunnableFuture);
221               Future f2 = ecs.take();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines