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.8 by dl, Mon Nov 3 13:50:07 2003 UTC vs.
Revision 1.13 by dl, Sat Dec 27 19:26:43 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 98 | Line 99 | public class JSR166TestCase extends Test
99      public static Test suite ( ) {
100          TestSuite suite = new TestSuite("JSR166 Unit Tests");
101          
102 +        suite.addTest(new TestSuite(AbstractExecutorServiceTest.class));
103          suite.addTest(new TestSuite(ArrayBlockingQueueTest.class));
104          suite.addTest(new TestSuite(AtomicBooleanTest.class));
105          suite.addTest(new TestSuite(AtomicIntegerArrayTest.class));
# Line 111 | Line 113 | public class JSR166TestCase extends Test
113          suite.addTest(new TestSuite(AtomicReferenceFieldUpdaterTest.class));
114          suite.addTest(new TestSuite(AtomicReferenceTest.class));
115          suite.addTest(new TestSuite(AtomicStampedReferenceTest.class));
114        suite.addTest(new TestSuite(CancellableTaskTest.class));
116          suite.addTest(new TestSuite(ConcurrentHashMapTest.class));
117          suite.addTest(new TestSuite(ConcurrentLinkedQueueTest.class));
118          suite.addTest(new TestSuite(CopyOnWriteArrayListTest.class));
# Line 121 | Line 122 | public class JSR166TestCase extends Test
122          suite.addTest(new TestSuite(DelayQueueTest.class));
123          suite.addTest(new TestSuite(ExchangerTest.class));
124          suite.addTest(new TestSuite(ExecutorsTest.class));
125 +        suite.addTest(new TestSuite(ExecutorCompletionServiceTest.class));
126          suite.addTest(new TestSuite(FutureTaskTest.class));
127          suite.addTest(new TestSuite(LinkedBlockingQueueTest.class));
128          suite.addTest(new TestSuite(LinkedListTest.class));
129          suite.addTest(new TestSuite(LockSupportTest.class));
130          suite.addTest(new TestSuite(PriorityBlockingQueueTest.class));
131          suite.addTest(new TestSuite(PriorityQueueTest.class));
130        suite.addTest(new TestSuite(PrivilegedFutureTaskTest.class));
132          suite.addTest(new TestSuite(ReentrantLockTest.class));
133          suite.addTest(new TestSuite(ReentrantReadWriteLockTest.class));
134          suite.addTest(new TestSuite(ScheduledExecutorTest.class));
# Line 353 | Line 354 | public class JSR166TestCase extends Test
354          public Object call() { return Boolean.TRUE; }
355      }
356  
357 +    static final String TEST_STRING = "a test string";
358 +
359 +    static class StringTask implements Callable<String> {
360 +        public String call() { return TEST_STRING; }
361 +    }
362 +
363 +    static class NPETask implements Callable<String> {
364 +        public String call() { throw new NullPointerException(); }
365 +    }
366 +
367 +    static class CallableOne implements Callable<Integer> {
368 +        public Integer call() { return one; }
369 +    }
370 +
371      class ShortRunnable implements Runnable {
372          public void run() {
373              try {
# Line 449 | Line 464 | public class JSR166TestCase extends Test
464              }
465              catch(InterruptedException success) {
466              }
467 +        }
468 +    }
469 +
470 +    class LongPossiblyInterruptedRunnable implements Runnable {
471 +        public void run() {
472 +            try {
473 +                Thread.sleep(LONG_DELAY_MS);
474 +            }
475 +            catch(InterruptedException success) {
476 +            }
477          }
478      }
479  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines