ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/tck/AtomicIntegerArrayTest.java
(Generate patch)

Comparing jsr166/src/test/tck/AtomicIntegerArrayTest.java (file contents):
Revision 1.8 by dl, Fri Jan 9 20:07:36 2004 UTC vs.
Revision 1.9 by dl, Sat Jan 10 01:41:59 2004 UTC

# 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   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines