[cvs] / jsr166 / src / test / tck / AtomicIntegerArrayTest.java Repository:
ViewVC logotype

Diff of /jsr166/src/test/tck/AtomicIntegerArrayTest.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.8, Fri Jan 9 20:07:36 2004 UTC revision 1.9, Sat Jan 10 01:41:59 2004 UTC
# Line 9  Line 9 
9  import junit.framework.*;  import junit.framework.*;
10  import java.util.concurrent.atomic.*;  import java.util.concurrent.atomic.*;
11  import java.io.*;  import java.io.*;
12    import java.util.*;
13    
14  public class AtomicIntegerArrayTest extends JSR166TestCase {  public class AtomicIntegerArrayTest extends JSR166TestCase {
15    
# Line 325  Line 326 
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  }  }

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

Doug Lea
ViewVC Help
Powered by ViewVC 1.0.8