[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.25, Fri May 6 11:22:07 2011 UTC revision 1.27, Sat Jun 18 14:16:42 2011 UTC
# Line 7  Line 7 
7   */   */
8    
9  import junit.framework.*;  import junit.framework.*;
10  import java.util.concurrent.*;  import java.util.concurrent.Callable;
11    import java.util.concurrent.CancellationException;
12    import java.util.concurrent.CountDownLatch;
13    import java.util.concurrent.ExecutionException;
14    import java.util.concurrent.Future;
15    import java.util.concurrent.FutureTask;
16    import java.util.concurrent.TimeoutException;
17  import static java.util.concurrent.TimeUnit.MILLISECONDS;  import static java.util.concurrent.TimeUnit.MILLISECONDS;
18  import static java.util.concurrent.TimeUnit.SECONDS;  import static java.util.concurrent.TimeUnit.SECONDS;
19  import java.util.*;  import java.util.*;
# Line 142  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 414  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 453  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       */       */

Legend:
Removed from v.1.25  
changed lines
  Added in v.1.27

Doug Lea
ViewVC Help
Powered by ViewVC 1.0.8