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.3 by dl, Sun Sep 14 20:42:41 2003 UTC vs.
Revision 1.4 by dl, Sat Sep 20 00:31:57 2003 UTC

# Line 150 | Line 150 | public class ThreadPoolExecutorTest exte
150          ThreadPoolExecutor one = new ThreadPoolExecutor(1, 1, MEDIUM_DELAY_MS, TimeUnit.MILLISECONDS, new ArrayBlockingQueue<Runnable>(10));
151          try {
152              assertEquals(0, one.getTaskCount());
153 <            for(int i = 0; i < 5; i++)
154 <                one.execute(new MediumRunnable());
153 >            one.execute(new MediumRunnable());
154              Thread.sleep(SHORT_DELAY_MS);
155 <            assertEquals(5, one.getTaskCount());
155 >            assertEquals(1, one.getTaskCount());
156          } catch(Exception e){
157              fail("unexpected exception");
158          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines