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.18 by jsr166, Sat Apr 25 04:55:31 2015 UTC vs.
Revision 1.20 by jsr166, Sat Mar 18 20:42:20 2017 UTC

# Line 49 | Line 49 | public class ThreadTest extends JSR166Te
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();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines