11 |
|
|
12 |
|
public class ThreadTest extends JSR166TestCase { |
13 |
|
public static void main(String[] args) { |
14 |
< |
junit.textui.TestRunner.run(suite()); |
14 |
> |
main(suite(), args); |
15 |
|
} |
16 |
|
|
17 |
|
public static Test suite() { |
50 |
|
*/ |
51 |
|
public void testGetAndSetDefaultUncaughtExceptionHandler() { |
52 |
|
assertEquals(null, Thread.getDefaultUncaughtExceptionHandler()); |
53 |
< |
// failure due to securityException is OK. |
53 |
> |
// failure due to SecurityException is OK. |
54 |
|
// Would be nice to explicitly test both ways, but cannot yet. |
55 |
|
Thread.UncaughtExceptionHandler defaultHandler |
56 |
|
= Thread.getDefaultUncaughtExceptionHandler(); |