ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/tck/AtomicReferenceFieldUpdaterTest.java
(Generate patch)

Comparing jsr166/src/test/tck/AtomicReferenceFieldUpdaterTest.java (file contents):
Revision 1.26 by jsr166, Mon Apr 1 20:58:58 2013 UTC vs.
Revision 1.27 by jsr166, Tue Apr 2 04:11:28 2013 UTC

# Line 33 | Line 33 | public class AtomicReferenceFieldUpdater
33          try {
34              updaterFor("y");
35              shouldThrow();
36 <        } catch (RuntimeException success) {}
36 >        } catch (RuntimeException success) {
37 >            assertTrue(success.getCause() != null);
38 >        }
39      }
40  
41      /**
# Line 47 | Line 49 | public class AtomicReferenceFieldUpdater
49      }
50  
51      /**
52 <     * Constructor with non-volatile field throws exception
52 >     * Constructor with non-volatile field throws IllegalArgumentException
53       */
54      public void testConstructor3() {
55          try {
56              updaterFor("w");
57              shouldThrow();
58 <        } catch (RuntimeException success) {}
58 >        } catch (IllegalArgumentException success) {}
59      }
60  
61      /**

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines