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.36 by jsr166, Mon Jul 22 18:01:03 2013 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines