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.11 by dl, Tue Dec 23 19:40:24 2003 UTC vs.
Revision 1.15 by dl, Mon Dec 29 19:05:40 2003 UTC

# Line 1 | Line 1
1   /*
2 < * Written by members of JCP JSR-166 Expert Group and released to the
3 < * public domain. Use, modify, and redistribute this code in any way
4 < * without acknowledgement. Other contributors include Andrew Wright,
5 < * Jeffrey Hayes, Pat Fischer, Mike Judd.
2 > * Written by Doug Lea with assistance from members of JCP JSR-166
3 > * Expert Group and released to the public domain, as explained at
4 > * http://creativecommons.org/licenses/publicdomain
5 > * Other contributors include Andrew Wright, Jeffrey Hayes,
6 > * Pat Fisher, Mike Judd.
7   */
8  
9   import junit.framework.*;
# Line 99 | Line 100 | public class JSR166TestCase extends Test
100          TestSuite suite = new TestSuite("JSR166 Unit Tests");
101          
102          suite.addTest(new TestSuite(AbstractExecutorServiceTest.class));
103 +        suite.addTest(new TestSuite(AbstractQueuedSynchronizerTest.class));
104          suite.addTest(new TestSuite(ArrayBlockingQueueTest.class));
105          suite.addTest(new TestSuite(AtomicBooleanTest.class));
106          suite.addTest(new TestSuite(AtomicIntegerArrayTest.class));
# Line 151 | Line 153 | public class JSR166TestCase extends Test
153  
154      /**
155       * Return the shortest timed delay. This could
156 <     * be reimplmented to use for example a Property.
156 >     * be reimplemented to use for example a Property.
157       */
158      protected long getShortDelay() {
159          return 100;
# Line 466 | Line 468 | public class JSR166TestCase extends Test
468          }
469      }
470  
471 +    class LongPossiblyInterruptedRunnable implements Runnable {
472 +        public void run() {
473 +            try {
474 +                Thread.sleep(LONG_DELAY_MS);
475 +            }
476 +            catch(InterruptedException success) {
477 +            }
478 +        }
479 +    }
480 +
481      /**
482       * For use as ThreadFactory in constructors
483       */
# Line 527 | Line 539 | public class JSR166TestCase extends Test
539          }
540      }
541  
542 +
543      /**
544       * For use as RejectedExecutionHandler in constructors
545       */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines