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

Comparing jsr166/src/test/tck/CompletableFutureTest.java (file contents):
Revision 1.83 by jsr166, Mon Jun 16 20:16:32 2014 UTC vs.
Revision 1.84 by jsr166, Mon Jun 16 20:20:08 2014 UTC

# Line 3205 | Line 3205 | public class CompletableFutureTest exten
3205          }
3206      }}
3207  
3208 //     public void testRunAfterEither_resultDeterminedAtTimeOfCreation() {
3209 //         for (ExecutionMode m : ExecutionMode.values())
3210 //         for (boolean mayInterruptIfRunning : new boolean[] { true, false })
3211 //         for (Integer v1 : new Integer[] { 1, null })
3212 //     {
3213 //         final CompletableFuture<Integer> f = new CompletableFuture<>();
3214 //         final CompletableFuture<Integer> g = new CompletableFuture<>();
3215 //         final Noop[] rs = new Noop[2];
3216 //         for (int i = 0; i < rs.length; i++) rs[i] = new Noop(m);
3217 //         f.complete(v1);
3218 //         final CompletableFuture<Void> h0 = m.runAfterEither(f, g, rs[0]);
3219 //         final CompletableFuture<Void> h1 = m.runAfterEither(g, f, rs[1]);
3220 //         assertTrue(g.cancel(mayInterruptIfRunning));
3221 //         checkCompletedNormally(h0, null);
3222 //         checkCompletedNormally(h1, null);
3223 //         for (Noop r : rs) r.assertInvoked();
3224 //     }}
3225
3208   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines