--- jsr166/src/test/tck/AtomicLongTest.java 2011/08/09 04:49:38 1.25 +++ jsr166/src/test/tck/AtomicLongTest.java 2014/12/31 19:05:42 1.27 @@ -6,9 +6,11 @@ * Pat Fisher, Mike Judd. */ -import junit.framework.*; import java.util.concurrent.atomic.AtomicLong; +import junit.framework.Test; +import junit.framework.TestSuite; + public class AtomicLongTest extends JSR166TestCase { public static void main(String[] args) { junit.textui.TestRunner.run(suite()); @@ -196,9 +198,10 @@ public class AtomicLongTest extends JSR1 public void testSerialization() throws Exception { AtomicLong x = new AtomicLong(); AtomicLong y = serialClone(x); - assertTrue(x != y); + assertNotSame(x, y); x.set(-22); AtomicLong z = serialClone(x); + assertNotSame(y, z); assertEquals(-22, x.get()); assertEquals(0, y.get()); assertEquals(-22, z.get());