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

Comparing jsr166/src/test/tck/AtomicReferenceTest.java (file contents):
Revision 1.19 by jsr166, Fri Jun 10 20:01:21 2011 UTC vs.
Revision 1.20 by jsr166, Fri Jun 10 20:17:11 2011 UTC

# Line 87 | Line 87 | public class AtomicReferenceTest extends
87          assertTrue(ai.compareAndSet(one, two));
88          t.join(LONG_DELAY_MS);
89          assertFalse(t.isAlive());
90 <        assertSame(ai.get(), three);
90 >        assertSame(three, ai.get());
91      }
92  
93      /**
# Line 132 | Line 132 | public class AtomicReferenceTest extends
132       */
133      public void testToString() {
134          AtomicReference<Integer> ai = new AtomicReference<Integer>(one);
135 <        assertEquals(ai.toString(), one.toString());
135 >        assertEquals(one.toString(), ai.toString());
136          ai.set(two);
137 <        assertEquals(ai.toString(), two.toString());
137 >        assertEquals(two.toString(), ai.toString());
138      }
139  
140   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines