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

Comparing jsr166/src/test/tck/AtomicIntegerFieldUpdaterTest.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 32 | Line 32 | public class AtomicIntegerFieldUpdaterTe
32          try {
33              updaterFor("y");
34              shouldThrow();
35 <        } catch (RuntimeException success) {}
35 >        } catch (RuntimeException success) {
36 >            assertTrue(success.getCause() != null);
37 >        }
38      }
39  
40      /**
41 <     * construction with field not of given type throws RuntimeException
41 >     * construction with field not of given type throws IllegalArgumentException
42       */
43      public void testConstructor2() {
44          try {
45              updaterFor("z");
46              shouldThrow();
47 <        } catch (RuntimeException success) {}
47 >        } catch (IllegalArgumentException success) {}
48      }
49  
50      /**
51 <     * construction with non-volatile field throws RuntimeException
51 >     * construction with non-volatile field throws IllegalArgumentException
52       */
53      public void testConstructor3() {
54          try {
55              updaterFor("w");
56              shouldThrow();
57 <        } catch (RuntimeException success) {}
57 >        } catch (IllegalArgumentException success) {}
58      }
59  
60      /**

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines