[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.16, Sat Nov 21 17:38:05 2009 UTC revision 1.17, Tue Dec 1 09:56:28 2009 UTC
# Line 73  Line 73 
73          assertEquals(2,a.get(this));          assertEquals(2,a.get(this));
74          a.set(this,-3);          a.set(this,-3);
75          assertEquals(-3,a.get(this));          assertEquals(-3,a.get(this));
   
76      }      }
77    
78      /**      /**
# Line 92  Line 91 
91          assertEquals(2,a.get(this));          assertEquals(2,a.get(this));
92          a.lazySet(this,-3);          a.lazySet(this,-3);
93          assertEquals(-3,a.get(this));          assertEquals(-3,a.get(this));
   
94      }      }
95    
96      /**      /**
# Line 110  Line 108 
108          assertTrue(a.compareAndSet(this,2,-4));          assertTrue(a.compareAndSet(this,2,-4));
109          assertEquals(-4,a.get(this));          assertEquals(-4,a.get(this));
110          assertFalse(a.compareAndSet(this,-5,7));          assertFalse(a.compareAndSet(this,-5,7));
111          assertFalse((7 == a.get(this)));          assertEquals(-4,a.get(this));
112          assertTrue(a.compareAndSet(this,-4,7));          assertTrue(a.compareAndSet(this,-4,7));
113          assertEquals(7,a.get(this));          assertEquals(7,a.get(this));
114      }      }

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.17

Doug Lea
ViewVC Help
Powered by ViewVC 1.0.8