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.29 by jsr166, Sat Jun 18 14:33:38 2011 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 319 | Line 319 | public class RecursiveTaskTest extends J
319          assertEquals(21, (int) testInvokeOnPool(mainPool(), a));
320      }
321  
322
322      /**
323       * helpQuiesce returns when tasks are complete.
324       * getQueuedTaskCount returns 0 when quiescent
# Line 329 | Line 328 | public class RecursiveTaskTest extends J
328              public Integer realCompute() {
329                  FibTask f = new FibTask(8);
330                  assertSame(f, f.fork());
331 <                f.helpQuiesce();
331 >                helpQuiesce();
332                  assertEquals(0, getQueuedTaskCount());
333                  checkCompletedNormally(f, 21);
334                  return NoResult;
# Line 337 | Line 336 | public class RecursiveTaskTest extends J
336          assertSame(NoResult, testInvokeOnPool(mainPool(), a));
337      }
338  
340
339      /**
340       * invoke task throws exception when task completes abnormally
341       */
# Line 763 | Line 761 | public class RecursiveTaskTest extends J
761          assertSame(NoResult, testInvokeOnPool(mainPool(), a));
762      }
763  
766
764      /**
765       * invokeAll(tasks) with any null task throws NPE
766       */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines