[cvs] / jsr166 / src / test / tck / AbstractExecutorServiceTest.java Repository:
ViewVC logotype

Diff of /jsr166/src/test/tck/AbstractExecutorServiceTest.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2, Wed Dec 10 02:24:00 2003 UTC revision 1.3, Fri Dec 19 14:44:25 2003 UTC
# Line 48  Line 48 
48              ExecutorService e = new DirectExecutorService();              ExecutorService e = new DirectExecutorService();
49              TrackedShortRunnable task = new TrackedShortRunnable();              TrackedShortRunnable task = new TrackedShortRunnable();
50              assertFalse(task.done);              assertFalse(task.done);
51              Future<?> future = e.submit(task);              Future<?> future = e.submit(task, null);
52              future.get();              future.get();
53              assertTrue(task.done);              assertTrue(task.done);
54          }          }
# Line 212  Line 212 
212          try {          try {
213              ExecutorService e = new DirectExecutorService();              ExecutorService e = new DirectExecutorService();
214              TrackedShortRunnable task = null;              TrackedShortRunnable task = null;
215              Future<?> future = e.submit(task);              Future<?> future = e.submit(task, null);
216              shouldThrow();              shouldThrow();
217          }          }
218          catch (NullPointerException success) {          catch (NullPointerException success) {
# Line 282  Line 282 
282          try {          try {
283    
284              for(int i = 0; i < 5; ++i){              for(int i = 0; i < 5; ++i){
285                  p.submit(new MediumRunnable());                  p.submit(new MediumRunnable(), null);
286              }              }
287              shouldThrow();              shouldThrow();
288          } catch(RejectedExecutionException success){}          } catch(RejectedExecutionException success){}

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

Doug Lea
ViewVC Help
Powered by ViewVC 1.0.8