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

Comparing jsr166/src/test/tck/AtomicLongTest.java (file contents):
Revision 1.25 by jsr166, Tue Aug 9 04:49:38 2011 UTC vs.
Revision 1.26 by jsr166, Thu May 30 03:28:55 2013 UTC

# Line 196 | Line 196 | public class AtomicLongTest extends JSR1
196      public void testSerialization() throws Exception {
197          AtomicLong x = new AtomicLong();
198          AtomicLong y = serialClone(x);
199 <        assertTrue(x != y);
199 >        assertNotSame(x, y);
200          x.set(-22);
201          AtomicLong z = serialClone(x);
202 +        assertNotSame(y, z);
203          assertEquals(-22, x.get());
204          assertEquals(0, y.get());
205          assertEquals(-22, z.get());

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines