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.26 by jsr166, Wed Aug 10 07:14:48 2011 UTC vs.
Revision 1.29 by jsr166, Wed Dec 31 19:05:42 2014 UTC

# Line 6 | Line 6
6   * Pat Fisher, Mike Judd.
7   */
8  
9 import junit.framework.*;
9   import java.util.Arrays;
10   import java.util.concurrent.atomic.AtomicReferenceArray;
11  
12 + import junit.framework.Test;
13 + import junit.framework.TestSuite;
14 +
15   public class AtomicReferenceArrayTest extends JSR166TestCase {
16      public static void main(String[] args) {
17          junit.textui.TestRunner.run(suite());
# Line 51 | Line 53 | public class AtomicReferenceArrayTest ex
53      }
54  
55      /**
56 <     * Initialize AtomicReference<Class> with SubClass[]
56 >     * Initialize AtomicReferenceArray<Class> with SubClass[]
57       */
58      public void testConstructorSubClassArray() {
59          Integer[] a = { two, one, three, four, seven };
# Line 199 | Line 201 | public class AtomicReferenceArrayTest ex
201              x.set(i, new Integer(-i));
202          }
203          AtomicReferenceArray y = serialClone(x);
204 <        assertTrue(x != y);
204 >        assertNotSame(x, y);
205          assertEquals(x.length(), y.length());
206          for (int i = 0; i < SIZE; i++) {
207              assertEquals(x.get(i), y.get(i));

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines