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.20 by jsr166, Fri Jun 10 20:17:11 2011 UTC vs.
Revision 1.21 by jsr166, Thu May 30 03:28:55 2013 UTC

# Line 119 | Line 119 | public class AtomicReferenceTest extends
119      public void testSerialization() throws Exception {
120          AtomicReference x = new AtomicReference();
121          AtomicReference y = serialClone(x);
122 <        assertTrue(x != y);
122 >        assertNotSame(x, y);
123          x.set(one);
124          AtomicReference z = serialClone(x);
125 +        assertNotSame(y, z);
126          assertEquals(one, x.get());
127          assertEquals(null, y.get());
128          assertEquals(one, z.get());

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines