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

Comparing jsr166/src/test/tck/AtomicIntegerArrayTest.java (file contents):
Revision 1.18 by jsr166, Thu Sep 16 00:52:49 2010 UTC vs.
Revision 1.21 by jsr166, Fri May 27 19:39:07 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 20 | Line 20 | public class AtomicIntegerArrayTest exte
20          return new TestSuite(AtomicIntegerArrayTest.class);
21      }
22  
23
23      /**
24       * constructor creates array of given size with all elements zero
25       */
# Line 163 | Line 162 | public class AtomicIntegerArrayTest exte
162      }
163  
164      /**
165 <     *  getAndSet returns previous value and sets to given value at given index
165 >     * getAndSet returns previous value and sets to given value at given index
166       */
167      public void testGetAndSet() {
168          AtomicIntegerArray ai = new AtomicIntegerArray(SIZE);
# Line 176 | Line 175 | public class AtomicIntegerArrayTest exte
175      }
176  
177      /**
178 <     *  getAndAdd returns previous value and adds given value
178 >     * getAndAdd returns previous value and adds given value
179       */
180      public void testGetAndAdd() {
181          AtomicIntegerArray ai = new AtomicIntegerArray(SIZE);
# Line 220 | Line 219 | public class AtomicIntegerArrayTest exte
219      }
220  
221      /**
222 <     *  addAndGet adds given value to current, and returns current value
222 >     * addAndGet adds given value to current, and returns current value
223       */
224      public void testAddAndGet() {
225          AtomicIntegerArray ai = new AtomicIntegerArray(SIZE);
# Line 248 | Line 247 | public class AtomicIntegerArrayTest exte
247      }
248  
249      /**
250 <     *  incrementAndGet increments and returns current value
250 >     * incrementAndGet increments and returns current value
251       */
252      public void testIncrementAndGet() {
253          AtomicIntegerArray ai = new AtomicIntegerArray(SIZE);
# Line 307 | Line 306 | public class AtomicIntegerArrayTest exte
306          assertEquals(c1.counts+c2.counts, SIZE * COUNTDOWN);
307      }
308  
310
309      /**
310       * a deserialized serialized array holds same values
311       */
# Line 329 | Line 327 | public class AtomicIntegerArrayTest exte
327          }
328      }
329  
332
330      /**
331       * toString returns current value.
332       */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines