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

Comparing jsr166/src/test/tck/AtomicIntegerTest.java (file contents):
Revision 1.11 by dl, Fri Oct 7 14:58:35 2005 UTC vs.
Revision 1.12 by jsr166, Mon Nov 2 20:28:31 2009 UTC

# Line 2 | Line 2
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
5 < * Other contributors include Andrew Wright, Jeffrey Hayes,
6 < * Pat Fisher, Mike Judd.
5 > * Other contributors include Andrew Wright, Jeffrey Hayes,
6 > * Pat Fisher, Mike Judd.
7   */
8  
9   import junit.framework.*;
# Line 44 | Line 44 | public class AtomicIntegerTest extends J
44          assertEquals(2,ai.get());
45          ai.set(-3);
46          assertEquals(-3,ai.get());
47 <        
47 >
48      }
49  
50      /**
# Line 57 | Line 57 | public class AtomicIntegerTest extends J
57          assertEquals(2,ai.get());
58          ai.lazySet(-3);
59          assertEquals(-3,ai.get());
60 <        
60 >
61      }
62      /**
63       * compareAndSet succeeds in changing value if equal to expected else fails
# Line 97 | Line 97 | public class AtomicIntegerTest extends J
97  
98      /**
99       * repeated weakCompareAndSet succeeds in changing value when equal
100 <     * to expected
100 >     * to expected
101       */
102      public void testWeakCompareAndSet(){
103          AtomicInteger ai = new AtomicInteger(1);
# Line 213 | Line 213 | public class AtomicIntegerTest extends J
213  
214      /**
215       * toString returns current value.
216 <     */
216 >     */
217      public void testToString() {
218          AtomicInteger ai = new AtomicInteger();
219          for (int i = -12; i < 6; ++i) {
# Line 224 | Line 224 | public class AtomicIntegerTest extends J
224  
225      /**
226       * intValue returns current value.
227 <     */
227 >     */
228      public void testIntValue() {
229          AtomicInteger ai = new AtomicInteger();
230          for (int i = -12; i < 6; ++i) {
# Line 236 | Line 236 | public class AtomicIntegerTest extends J
236  
237      /**
238       * longValue returns current value.
239 <     */
239 >     */
240      public void testLongValue() {
241          AtomicInteger ai = new AtomicInteger();
242          for (int i = -12; i < 6; ++i) {
# Line 247 | Line 247 | public class AtomicIntegerTest extends J
247  
248      /**
249       * floatValue returns current value.
250 <     */
250 >     */
251      public void testFloatValue() {
252          AtomicInteger ai = new AtomicInteger();
253          for (int i = -12; i < 6; ++i) {
# Line 258 | Line 258 | public class AtomicIntegerTest extends J
258  
259      /**
260       * doubleValue returns current value.
261 <     */
261 >     */
262      public void testDoubleValue() {
263          AtomicInteger ai = new AtomicInteger();
264          for (int i = -12; i < 6; ++i) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines