# | 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 AtomicReferenceArrayTest extends JSR166TestCase | |
15 | { | |
# | Line 189 | Line 190 | public class AtomicReferenceArrayTest ex | |
190 | } | |
191 | ||
192 | ||
193 | + | /** |
194 | + | * toString returns current value. |
195 | + | */ |
196 | + | public void testToString() { |
197 | + | Integer[] a = { two, one, three, four, seven}; |
198 | + | AtomicReferenceArray<Integer> ai = new AtomicReferenceArray<Integer>(a); |
199 | + | assertEquals(Arrays.toString(a), ai.toString()); |
200 | + | } |
201 | } |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |