49 |
|
* setDefaultUncaughtExceptionHandler. |
50 |
|
*/ |
51 |
|
public void testGetAndSetDefaultUncaughtExceptionHandler() { |
52 |
< |
assertEquals(null, Thread.getDefaultUncaughtExceptionHandler()); |
53 |
< |
// failure due to securityException is OK. |
52 |
> |
assertNull(Thread.getDefaultUncaughtExceptionHandler()); |
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(); |