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

Comparing jsr166/src/test/tck/JSR166TestCase.java (file contents):
Revision 1.47 by jsr166, Tue Dec 1 06:47:14 2009 UTC vs.
Revision 1.48 by jsr166, Tue Dec 1 22:51:44 2009 UTC

# Line 540 | Line 540 | public class JSR166TestCase extends Test
540          public String call() { return TEST_STRING; }
541      }
542  
543 +    public Callable<String> latchAwaitingStringTask(final CountDownLatch latch) {
544 +        return new CheckedCallable<String>() {
545 +            public String realCall() {
546 +                try {
547 +                    latch.await();
548 +                } catch (InterruptedException quittingTime) {}
549 +                return TEST_STRING;
550 +            }};
551 +    }
552 +
553      public static class NPETask implements Callable<String> {
554          public String call() { throw new NullPointerException(); }
555      }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines