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() { |
54 |
|
// Would be nice to explicitly test both ways, but cannot yet. |
55 |
|
Thread.UncaughtExceptionHandler defaultHandler |
56 |
|
= Thread.getDefaultUncaughtExceptionHandler(); |
57 |
– |
Thread current = Thread.currentThread(); |
57 |
|
MyHandler eh = new MyHandler(); |
58 |
|
try { |
59 |
|
Thread.setDefaultUncaughtExceptionHandler(eh); |