# | Line 9 | Line 9 | |
---|---|---|
9 | import junit.framework.*; | |
10 | import java.util.concurrent.atomic.*; | |
11 | import java.io.*; | |
12 | + | import java.util.*; |
13 | ||
14 | public class AtomicIntegerArrayTest extends JSR166TestCase { | |
15 | ||
# | Line 325 | Line 326 | public class AtomicIntegerArrayTest exte | |
326 | } | |
327 | ||
328 | ||
329 | + | /** |
330 | + | * toString returns current value. |
331 | + | */ |
332 | + | public void testToString() { |
333 | + | int[] a = { 17, 3, -42, 99, -7}; |
334 | + | AtomicIntegerArray ai = new AtomicIntegerArray(a); |
335 | + | assertEquals(Arrays.toString(a), ai.toString()); |
336 | + | } |
337 | ||
338 | } |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |