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.61 by jsr166, Mon Oct 11 03:54:10 2010 UTC vs.
Revision 1.64 by jsr166, Fri Oct 15 22:30:07 2010 UTC

# Line 96 | Line 96 | public class JSR166TestCase extends Test
96      private static final boolean useSecurityManager =
97          Boolean.getBoolean("jsr166.useSecurityManager");
98  
99 +    protected static final boolean expensiveTests =
100 +        Boolean.getBoolean("jsr166.expensiveTests");
101 +
102      /**
103       * If true, report on stdout all "slow" tests, that is, ones that
104       * take more than profileThreshold milliseconds to execute.
# Line 128 | 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 743 | Line 746 | public class JSR166TestCase extends Test
746  
747      public Callable<String> latchAwaitingStringTask(final CountDownLatch latch) {
748          return new CheckedCallable<String>() {
749 <            public String realCall() {
749 >            protected String realCall() {
750                  try {
751                      latch.await();
752                  } catch (InterruptedException quittingTime) {}
# Line 804 | 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