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

Comparing jsr166/src/test/tck/RecursiveTaskTest.java (file contents):
Revision 1.26 by dl, Tue Feb 22 01:18:59 2011 UTC vs.
Revision 1.30 by jsr166, Wed Dec 31 16:44:02 2014 UTC

# Line 1 | Line 1
1   /*
2   * Written by Doug Lea with assistance from members of JCP JSR-166
3   * Expert Group and released to the public domain, as explained at
4 < * http://creativecommons.org/licenses/publicdomain
4 > * http://creativecommons.org/publicdomain/zero/1.0/
5   */
6  
7   import junit.framework.*;
# Line 9 | Line 9 | import java.util.concurrent.Cancellation
9   import java.util.concurrent.ExecutionException;
10   import java.util.concurrent.ForkJoinPool;
11   import java.util.concurrent.ForkJoinTask;
12 import java.util.concurrent.ForkJoinWorkerThread;
12   import java.util.concurrent.RecursiveTask;
14 import java.util.concurrent.TimeUnit;
13   import java.util.concurrent.TimeoutException;
14   import static java.util.concurrent.TimeUnit.SECONDS;
15   import java.util.HashSet;
# Line 319 | Line 317 | public class RecursiveTaskTest extends J
317          assertEquals(21, (int) testInvokeOnPool(mainPool(), a));
318      }
319  
322
320      /**
321       * helpQuiesce returns when tasks are complete.
322       * getQueuedTaskCount returns 0 when quiescent
# Line 329 | Line 326 | public class RecursiveTaskTest extends J
326              public Integer realCompute() {
327                  FibTask f = new FibTask(8);
328                  assertSame(f, f.fork());
329 <                f.helpQuiesce();
329 >                helpQuiesce();
330                  assertEquals(0, getQueuedTaskCount());
331                  checkCompletedNormally(f, 21);
332                  return NoResult;
# Line 337 | Line 334 | public class RecursiveTaskTest extends J
334          assertSame(NoResult, testInvokeOnPool(mainPool(), a));
335      }
336  
340
337      /**
338       * invoke task throws exception when task completes abnormally
339       */
# Line 763 | Line 759 | public class RecursiveTaskTest extends J
759          assertSame(NoResult, testInvokeOnPool(mainPool(), a));
760      }
761  
766
762      /**
763       * invokeAll(tasks) with any null task throws NPE
764       */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines