ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/tck/ThreadLocalTest.java
(Generate patch)

Comparing jsr166/src/test/tck/ThreadLocalTest.java (file contents):
Revision 1.9 by jsr166, Sat Nov 21 02:07:27 2009 UTC vs.
Revision 1.10 by jsr166, Sat Nov 21 10:25:05 2009 UTC

# Line 88 | Line 88 | public class ThreadLocalTest extends JSR
88      /**
89       * InheritableThreadLocal propagates generic values.
90       */
91 <    public void testGenericITL() {
91 >    public void testGenericITL() throws InterruptedException {
92          final int threadCount = 10;
93          final int x[] = new int[threadCount];
94          Thread progenitor = new ITLThread(x);
95 <        try {
96 <            progenitor.start();
97 <            progenitor.join();
98 <            for (int i = 0; i < threadCount; i++) {
99 <                assertEquals(i, x[i]);
100 <            }
101 <        } catch (InterruptedException e) {
102 <            unexpectedException(e);
95 >        progenitor.start();
96 >        progenitor.join();
97 >        for (int i = 0; i < threadCount; i++) {
98 >            assertEquals(i, x[i]);
99          }
100      }
101   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines