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.62 by jsr166, Mon Oct 11 05:40:41 2010 UTC vs.
Revision 1.63 by jsr166, Mon Oct 11 08:30:01 2010 UTC

# Line 131 | Line 131 | public class JSR166TestCase extends Test
131                  System.out.printf("%n%s: %d%n", toString(), elapsedMillis);
132          }
133      }
134 <    
134 >
135      /**
136       * Runs all JSR166 unit tests using junit.textui.TestRunner
137       */
# Line 807 | Line 807 | public class JSR166TestCase extends Test
807          }
808      }
809  
810 +    public Runnable possiblyInterruptedRunnable(final long timeoutMillis) {
811 +        return new CheckedRunnable() {
812 +            protected void realRun() {
813 +                try {
814 +                    Thread.sleep(timeoutMillis);
815 +                } catch (InterruptedException ok) {}
816 +            }};
817 +    }
818 +
819      public class MediumPossiblyInterruptedRunnable extends CheckedRunnable {
820          protected void realRun() {
821              try {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines