[cvs] / jsr166 / src / test / tck / AtomicIntegerFieldUpdaterTest.java Repository:
ViewVC logotype

Diff of /jsr166/src/test/tck/AtomicIntegerFieldUpdaterTest.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.24, Mon Apr 1 20:58:58 2013 UTC revision 1.25, Tue Apr 2 04:11:28 2013 UTC
# Line 32  Line 32 
32          try {          try {
33              updaterFor("y");              updaterFor("y");
34              shouldThrow();              shouldThrow();
35          } catch (RuntimeException success) {}          } catch (RuntimeException success) {
36                assertTrue(success.getCause() != null);
37            }
38      }      }
39    
40      /**      /**
41       * construction with field not of given type throws RuntimeException       * construction with field not of given type throws IllegalArgumentException
42       */       */
43      public void testConstructor2() {      public void testConstructor2() {
44          try {          try {
45              updaterFor("z");              updaterFor("z");
46              shouldThrow();              shouldThrow();
47          } catch (RuntimeException success) {}          } catch (IllegalArgumentException success) {}
48      }      }
49    
50      /**      /**
51       * construction with non-volatile field throws RuntimeException       * construction with non-volatile field throws IllegalArgumentException
52       */       */
53      public void testConstructor3() {      public void testConstructor3() {
54          try {          try {
55              updaterFor("w");              updaterFor("w");
56              shouldThrow();              shouldThrow();
57          } catch (RuntimeException success) {}          } catch (IllegalArgumentException success) {}
58      }      }
59    
60      /**      /**

Legend:
Removed from v.1.24  
changed lines
  Added in v.1.25

Doug Lea
ViewVC Help
Powered by ViewVC 1.0.8