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

Comparing jsr166/src/test/tck/ThreadTest.java (file contents):
Revision 1.1 by dl, Sun Aug 31 19:24:56 2003 UTC vs.
Revision 1.2 by dl, Mon Sep 1 00:17:10 2003 UTC

# Line 33 | Line 33 | public class ThreadTest extends TestCase
33          // dependencies across tests
34          Thread current = Thread.currentThread();
35          ThreadGroup tg = current.getThreadGroup();
36        assertNull(Thread.getDefaultUncaughtExceptionHandler());
37        assertEquals(tg, current.getUncaughtExceptionHandler());
36          MyHandler eh = new MyHandler();
39        Thread.setDefaultUncaughtExceptionHandler(eh);
40        assertEquals(eh, current.getUncaughtExceptionHandler());
41        assertEquals(eh, Thread.getDefaultUncaughtExceptionHandler());
42        Thread.setDefaultUncaughtExceptionHandler(null);
43        assertNull(Thread.getDefaultUncaughtExceptionHandler());
37          assertEquals(tg, current.getUncaughtExceptionHandler());
38          current.setUncaughtExceptionHandler(eh);
39          assertEquals(eh, current.getUncaughtExceptionHandler());

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines