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

Comparing jsr166/src/test/tck/ForkJoinTaskTest.java (file contents):
Revision 1.34 by jsr166, Mon Jun 3 18:20:05 2013 UTC vs.
Revision 1.35 by dl, Sun Jul 21 22:24:18 2013 UTC

# Line 1607 | Line 1607 | public class ForkJoinTaskTest extends JS
1607          testInvokeOnPool(singletonPool(), a);
1608      }
1609  
1610 +
1611 +    /**
1612 +     * ForkJoinTask.quietlyComplete returns when task completes
1613 +     * normally without setting a value. The most recent value
1614 +     * established by setRawResult(V) (or null by default) is returned
1615 +     * from invoke.
1616 +     */
1617 +    public void testQuietlyComplete() {
1618 +        RecursiveAction a = new CheckedRecursiveAction() {
1619 +                protected void realCompute() {
1620 +                    AsyncFib f = new AsyncFib(8);
1621 +                    f.quietlyComplete();
1622 +                    assertEquals(8, f.number);
1623 +                    checkCompletedNormally(f);
1624 +                }};
1625 +        testInvokeOnPool(mainPool(), a);
1626 +    }
1627 +
1628   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines