# | Line 22 | Line 22 | public class ThreadTest extends JSR166Te | |
---|---|---|
22 | } | |
23 | } | |
24 | ||
25 | + | /** |
26 | + | * |
27 | + | */ |
28 | public void testGetAndSetUncaughtExceptionHandler() { | |
29 | // these must be done all at once to avoid state | |
30 | // dependencies across tests | |
# | Line 35 | Line 38 | public class ThreadTest extends JSR166Te | |
38 | assertEquals(tg, current.getUncaughtExceptionHandler()); | |
39 | } | |
40 | ||
41 | + | /** |
42 | + | * |
43 | + | */ |
44 | public void testGetAndSetDefaultUncaughtExceptionHandler() { | |
45 | assertEquals(null, Thread.getDefaultUncaughtExceptionHandler()); | |
46 | // failure due to securityException is OK. |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |