--- jsr166/src/test/tck/AtomicIntegerArrayTest.java 2004/01/08 01:29:46 1.7 +++ jsr166/src/test/tck/AtomicIntegerArrayTest.java 2004/01/10 01:41:59 1.9 @@ -9,6 +9,7 @@ import junit.framework.*; import java.util.concurrent.atomic.*; import java.io.*; +import java.util.*; public class AtomicIntegerArrayTest extends JSR166TestCase { @@ -324,4 +325,14 @@ public class AtomicIntegerArrayTest exte } } + + /** + * toString returns current value. + */ + public void testToString() { + int[] a = { 17, 3, -42, 99, -7}; + AtomicIntegerArray ai = new AtomicIntegerArray(a); + assertEquals(Arrays.toString(a), ai.toString()); + } + }