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

Comparing jsr166/src/test/tck/LongAdderTest.java (file contents):
Revision 1.2 by jsr166, Fri Mar 22 16:10:19 2013 UTC vs.
Revision 1.3 by jsr166, Thu May 30 03:28:55 2013 UTC

# Line 85 | Line 85 | public class LongAdderTest extends JSR16
85      public void testSerialization() throws Exception {
86          LongAdder x = new LongAdder();
87          LongAdder y = serialClone(x);
88 <        assertTrue(x != y);
88 >        assertNotSame(x, y);
89          x.add(-22);
90          LongAdder z = serialClone(x);
91 +        assertNotSame(y, z);
92          assertEquals(-22, x.sum());
93          assertEquals(0, y.sum());
94          assertEquals(-22, z.sum());

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines