42 |
|
* constructor with array is of same size and has all elements |
43 |
|
*/ |
44 |
|
public void testConstructor2() { |
45 |
< |
long[] a = { 17L, 3L, -42L, 99L, -7L}; |
45 |
> |
long[] a = { 17L, 3L, -42L, 99L, -7L }; |
46 |
|
AtomicLongArray ai = new AtomicLongArray(a); |
47 |
|
assertEquals(a.length, ai.length()); |
48 |
|
for (int i = 0; i < a.length; ++i) |
323 |
|
* toString returns current value. |
324 |
|
*/ |
325 |
|
public void testToString() { |
326 |
< |
long[] a = { 17, 3, -42, 99, -7}; |
326 |
> |
long[] a = { 17, 3, -42, 99, -7 }; |
327 |
|
AtomicLongArray ai = new AtomicLongArray(a); |
328 |
|
assertEquals(Arrays.toString(a), ai.toString()); |
329 |
|
} |