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 |
|
{ |
189 |
|
} |
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 |
|
} |