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.9 by dl, Thu Dec 4 20:54:46 2003 UTC vs.
Revision 1.10 by dl, Mon Dec 22 00:48:55 2003 UTC

# Line 98 | Line 98 | public class JSR166TestCase extends Test
98      public static Test suite ( ) {
99          TestSuite suite = new TestSuite("JSR166 Unit Tests");
100          
101 +        suite.addTest(new TestSuite(AbstractExecutorServiceTest.class));
102          suite.addTest(new TestSuite(ArrayBlockingQueueTest.class));
103          suite.addTest(new TestSuite(AtomicBooleanTest.class));
104          suite.addTest(new TestSuite(AtomicIntegerArrayTest.class));
# Line 126 | Line 127 | public class JSR166TestCase extends Test
127          suite.addTest(new TestSuite(LockSupportTest.class));
128          suite.addTest(new TestSuite(PriorityBlockingQueueTest.class));
129          suite.addTest(new TestSuite(PriorityQueueTest.class));
129        suite.addTest(new TestSuite(PrivilegedFutureTaskTest.class));
130          suite.addTest(new TestSuite(ReentrantLockTest.class));
131          suite.addTest(new TestSuite(ReentrantReadWriteLockTest.class));
132          suite.addTest(new TestSuite(ScheduledExecutorTest.class));
# Line 352 | Line 352 | public class JSR166TestCase extends Test
352          public Object call() { return Boolean.TRUE; }
353      }
354  
355 +    static final String TEST_STRING = "a test string";
356 +
357 +    static class StringTask implements Callable<String> {
358 +        public String call() { return TEST_STRING; }
359 +    }
360 +
361 +    static class NPETask implements Callable<String> {
362 +        public String call() { throw new NullPointerException(); }
363 +    }
364 +
365 +    static class CallableOne implements Callable<Integer> {
366 +        public Integer call() { return one; }
367 +    }
368 +
369      class ShortRunnable implements Runnable {
370          public void run() {
371              try {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines