55 |
|
/** |
56 |
|
* get and set for out of bound indices throw IndexOutOfBoundsException |
57 |
|
*/ |
58 |
+ |
@SuppressWarnings("deprecation") |
59 |
|
public void testIndexing() { |
60 |
|
AtomicIntegerArray aa = new AtomicIntegerArray(SIZE); |
61 |
|
for (int index : new int[] { -1, SIZE }) { |
161 |
|
* repeated weakCompareAndSet succeeds in changing value when equal |
162 |
|
* to expected |
163 |
|
*/ |
164 |
+ |
@SuppressWarnings("deprecation") |
165 |
|
public void testWeakCompareAndSet() { |
166 |
|
AtomicIntegerArray aa = new AtomicIntegerArray(SIZE); |
167 |
|
for (int i = 0; i < SIZE; i++) { |
317 |
|
} |
318 |
|
|
319 |
|
/** |
320 |
< |
* a deserialized serialized array holds same values |
320 |
> |
* a deserialized/reserialized array holds same values in same order |
321 |
|
*/ |
322 |
|
public void testSerialization() throws Exception { |
323 |
|
AtomicIntegerArray x = new AtomicIntegerArray(SIZE); |