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.16 by jsr166, Sat Nov 21 17:38:05 2009 UTC vs.
Revision 1.19 by jsr166, Tue Mar 15 19:47:06 2011 UTC

# Line 1 | Line 1
1   /*
2   * Written by Doug Lea with assistance from members of JCP JSR-166
3   * Expert Group and released to the public domain, as explained at
4 < * http://creativecommons.org/licenses/publicdomain
4 > * http://creativecommons.org/publicdomain/zero/1.0/
5   * Other contributors include Andrew Wright, Jeffrey Hayes,
6   * Pat Fisher, Mike Judd.
7   */
# Line 59 | Line 59 | public class AtomicLongFieldUpdaterTest
59      }
60  
61      /**
62 <     *  get returns the last value set or assigned
62 >     * get returns the last value set or assigned
63       */
64      public void testGetSet() {
65          AtomicLongFieldUpdater<AtomicLongFieldUpdaterTest> a;
# Line 77 | Line 77 | public class AtomicLongFieldUpdaterTest
77      }
78  
79      /**
80 <     *  get returns the last value lazySet by same thread
80 >     * get returns the last value lazySet by same thread
81       */
82      public void testGetLazySet() {
83          AtomicLongFieldUpdater<AtomicLongFieldUpdaterTest> a;
# Line 110 | Line 110 | public class AtomicLongFieldUpdaterTest
110          assertTrue(a.compareAndSet(this,2,-4));
111          assertEquals(-4,a.get(this));
112          assertFalse(a.compareAndSet(this,-5,7));
113 <        assertFalse((7 == a.get(this)));
113 >        assertEquals(-4,a.get(this));
114          assertTrue(a.compareAndSet(this,-4,7));
115          assertEquals(7,a.get(this));
116      }
# Line 162 | Line 162 | public class AtomicLongFieldUpdaterTest
162      }
163  
164      /**
165 <     *  getAndSet returns previous value and sets to given value
165 >     * getAndSet returns previous value and sets to given value
166       */
167      public void testGetAndSet() {
168          AtomicLongFieldUpdater<AtomicLongFieldUpdaterTest> a;
# Line 248 | Line 248 | public class AtomicLongFieldUpdaterTest
248      }
249  
250      /**
251 <     *  decrementAndGet decrements and returns current value
251 >     * decrementAndGet decrements and returns current value
252       */
253      public void testDecrementAndGet() {
254          AtomicLongFieldUpdater<AtomicLongFieldUpdaterTest> a;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines