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

Comparing jsr166/src/test/tck/AtomicLongArrayTest.java (file contents):
Revision 1.7 by dl, Thu Jan 8 01:29:46 2004 UTC vs.
Revision 1.8 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 AtomicLongArrayTest extends JSR166TestCase {
15      public static void main (String[] args) {
# Line 320 | Line 321 | public class AtomicLongArrayTest extends
321          }
322      }
323  
324 +    /**
325 +     * toString returns current value.
326 +     */
327 +    public void testToString() {
328 +        long[] a = { 17, 3, -42, 99, -7};
329 +        AtomicLongArray ai = new AtomicLongArray(a);
330 +        assertEquals(Arrays.toString(a), ai.toString());
331 +    }
332 +
333  
334   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines