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.23 by jsr166, Fri Jun 10 20:01:21 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());
# Line 210 | Line 211 | public class AtomicLongTest extends JSR1
211      public void testToString() {
212          AtomicLong ai = new AtomicLong();
213          assertEquals("0", ai.toString());
214 <        for (long i : VALUES) {
215 <            ai.set(i);
216 <            assertEquals(ai.toString(), Long.toString(i));
214 >        for (long x : VALUES) {
215 >            ai.set(x);
216 >            assertEquals(Long.toString(x), ai.toString());
217          }
218      }
219  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines