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.76 by jsr166, Sat Jun 7 21:45:13 2014 UTC vs.
Revision 1.77 by jsr166, Sat Jun 7 21:46:50 2014 UTC

# Line 351 | Line 351 | public class CompletableFutureTest exten
351          f.completeExceptionally(new IndexOutOfBoundsException());
352          assertTrue(f.toString().contains("[Completed exceptionally]"));
353  
354 <        f = new CompletableFuture<String>();
355 <        f.cancel(true);
356 <        assertTrue(f.toString().contains("[Completed exceptionally]"));
357 <
358 <        f = new CompletableFuture<String>();
359 <        f.cancel(false);
360 <        assertTrue(f.toString().contains("[Completed exceptionally]"));
354 >        for (boolean mayInterruptIfRunning : new boolean[] { true, false }) {
355 >            f = new CompletableFuture<String>();
356 >            f.cancel(mayInterruptIfRunning);
357 >            assertTrue(f.toString().contains("[Completed exceptionally]"));
358 >        }
359      }
360  
361      /**

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines