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

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

# Line 33 | Line 33 | public class AtomicLongFieldUpdaterTest
33          try {
34              updaterFor("y");
35              shouldThrow();
36 <        } catch (RuntimeException success) {}
36 >        } catch (RuntimeException success) {
37 >            assertTrue(success.getCause() != null);
38 >        }
39      }
40  
41      /**
42 <     * construction with field not of given type throws RuntimeException
42 >     * construction with field not of given type throws IllegalArgumentException
43       */
44      public void testConstructor2() {
45          try {
46              updaterFor("z");
47              shouldThrow();
48 <        } catch (RuntimeException success) {}
48 >        } catch (IllegalArgumentException success) {}
49      }
50  
51      /**
52 <     * construction with non-volatile field throws RuntimeException
52 >     * construction 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