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

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

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

revision 1.26, Tue May 31 16:16:23 2011 UTC revision 1.28, Sat Jun 18 14:31:51 2011 UTC
# Line 148  Line 148 
148          checkCancelled(task);          checkCancelled(task);
149      }      }
150    
   
151      /**      /**
152       * setting value causes get to return it       * setting value causes get to return it
153       */       */
# Line 420  Line 419 
419          checkCancelled(task);          checkCancelled(task);
420      }      }
421    
   
422      /**      /**
423       * A runtime exception in task causes get to throw ExecutionException       * A runtime exception in task causes get to throw ExecutionException
424       */       */
# Line 459  Line 457 
457          }          }
458      }      }
459    
   
460      /**      /**
461       * Interrupting a waiting get causes it to throw InterruptedException       * Interrupting a waiting get causes it to throw InterruptedException
462       */       */
# Line 474  Line 471 
471    
472          threadStarted.await();          threadStarted.await();
473          t.interrupt();          t.interrupt();
474          awaitTermination(t, MEDIUM_DELAY_MS);          awaitTermination(t);
475          checkNotDone(task);          checkNotDone(task);
476      }      }
477    
# Line 487  Line 484 
484          Thread t = newStartedThread(new CheckedInterruptedRunnable() {          Thread t = newStartedThread(new CheckedInterruptedRunnable() {
485              public void realRun() throws Exception {              public void realRun() throws Exception {
486                  threadStarted.countDown();                  threadStarted.countDown();
487                  task.get(LONG_DELAY_MS, MILLISECONDS);                  task.get(2*LONG_DELAY_MS, MILLISECONDS);
488              }});              }});
489    
490          threadStarted.await();          threadStarted.await();
491          t.interrupt();          t.interrupt();
492          awaitTermination(t, MEDIUM_DELAY_MS);          awaitTermination(t);
493          checkNotDone(task);          checkNotDone(task);
494      }      }
495    

Legend:
Removed from v.1.26  
changed lines
  Added in v.1.28

Doug Lea
ViewVC Help
Powered by ViewVC 1.0.8