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.111 by jsr166, Fri Sep 4 13:43:25 2015 UTC vs.
Revision 1.112 by jsr166, Fri Sep 4 19:46:22 2015 UTC

# Line 3549 | Line 3549 | public class CompletableFutureTest exten
3549       */
3550      public void testOrTimeout() {
3551          CompletableFuture<Integer> f = new CompletableFuture<>();
3552 <        f.orTimeout(SHORT_DELAY_MS, TimeUnit.MILLISECONDS);
3552 >        f.orTimeout(SHORT_DELAY_MS, MILLISECONDS);
3553          checkCompletedExceptionallyWithTimeout(f);
3554      }
3555  
# Line 3559 | Line 3559 | public class CompletableFutureTest exten
3559      public void testOrTimeout2() {
3560          CompletableFuture<Integer> f = new CompletableFuture<>();
3561          f.complete(1);
3562 <        f.orTimeout(SHORT_DELAY_MS, TimeUnit.MILLISECONDS);
3562 >        f.orTimeout(SHORT_DELAY_MS, MILLISECONDS);
3563          checkCompletedNormally(f, 1);
3564      }
3565  
# Line 3568 | Line 3568 | public class CompletableFutureTest exten
3568       */
3569      public void testCompleteOnTimeout() {
3570          CompletableFuture<Integer> f = new CompletableFuture<>();
3571 <        f.completeOnTimeout(-1, SHORT_DELAY_MS, TimeUnit.MILLISECONDS);
3571 >        f.completeOnTimeout(-1, SHORT_DELAY_MS, MILLISECONDS);
3572          f.join();
3573          checkCompletedNormally(f, -1);
3574      }
# Line 3579 | Line 3579 | public class CompletableFutureTest exten
3579      public void testCompleteOnTimeout2() {
3580          CompletableFuture<Integer> f = new CompletableFuture<>();
3581          f.complete(1);
3582 <        f.completeOnTimeout(-1, SHORT_DELAY_MS, TimeUnit.MILLISECONDS);
3582 >        f.completeOnTimeout(-1, SHORT_DELAY_MS, MILLISECONDS);
3583          checkCompletedNormally(f, 1);
3584      }
3585  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines