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

Comparing jsr166/src/test/tck/FutureTaskTest.java (file contents):
Revision 1.18 by jsr166, Tue Dec 1 09:56:28 2009 UTC vs.
Revision 1.21 by jsr166, Sat Oct 9 19:30:35 2010 UTC

# Line 14 | Line 14 | import java.util.*;
14   public class FutureTaskTest extends JSR166TestCase {
15  
16      public static void main(String[] args) {
17 <        junit.textui.TestRunner.run (suite());
17 >        junit.textui.TestRunner.run(suite());
18      }
19      public static Test suite() {
20          return new TestSuite(FutureTaskTest.class);
# Line 107 | Line 107 | public class FutureTaskTest extends JSR1
107      }
108  
109      /**
110 <     *  Cancelling before running succeeds
110 >     * Cancelling before running succeeds
111       */
112      public void testCancelBeforeRun() {
113          FutureTask task = new FutureTask(new NoOpCallable());
# Line 229 | Line 229 | public class FutureTaskTest extends JSR1
229      }
230  
231      /**
232 <     *  Cancelling a task causes timed get in another thread to throw CancellationException
232 >     * Cancelling a task causes timed get in another thread to throw
233 >     * CancellationException
234       */
235      public void testTimedGet_Cancellation() throws InterruptedException {
236          final FutureTask ft =
# Line 253 | Line 254 | public class FutureTaskTest extends JSR1
254      }
255  
256      /**
257 <     * Cancelling a task causes get in another thread to throw CancellationException
257 >     * Cancelling a task causes get in another thread to throw
258 >     * CancellationException
259       */
260      public void testGet_Cancellation() throws InterruptedException {
261          final FutureTask ft =
# Line 296 | Line 298 | public class FutureTaskTest extends JSR1
298      }
299  
300      /**
301 <     *  A runtime exception in task causes timed get to throw ExecutionException
301 >     * A runtime exception in task causes timed get to throw ExecutionException
302       */
303      public void testTimedGet_ExecutionException2() throws Exception {
304          final FutureTask ft = new FutureTask(new Callable() {
# Line 331 | Line 333 | public class FutureTaskTest extends JSR1
333      }
334  
335      /**
336 <     *  Interrupting a waiting timed get causes it to throw InterruptedException
336 >     * Interrupting a waiting timed get causes it to throw InterruptedException
337       */
338      public void testTimedGet_InterruptedException2() throws InterruptedException {
339          final FutureTask ft = new FutureTask(new NoOpCallable());

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines