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

Comparing jsr166/src/test/tck/AtomicReferenceArrayTest.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 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   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines