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

Comparing jsr166/src/test/tck/AtomicIntegerTest.java (file contents):
Revision 1.24 by jsr166, Fri Jun 10 20:17:11 2011 UTC vs.
Revision 1.26 by jsr166, Wed Dec 31 19:05:42 2014 UTC

# Line 6 | Line 6
6   * Pat Fisher, Mike Judd.
7   */
8  
9 import junit.framework.*;
9   import java.util.concurrent.atomic.AtomicInteger;
10  
11 + import junit.framework.Test;
12 + import junit.framework.TestSuite;
13 +
14   public class AtomicIntegerTest extends JSR166TestCase {
15      public static void main(String[] args) {
16          junit.textui.TestRunner.run(suite());
# Line 194 | Line 196 | public class AtomicIntegerTest extends J
196      public void testSerialization() throws Exception {
197          AtomicInteger x = new AtomicInteger();
198          AtomicInteger y = serialClone(x);
199 <        assertTrue(x != y);
199 >        assertNotSame(x, y);
200          x.set(22);
201          AtomicInteger z = serialClone(x);
202          assertEquals(22, x.get());

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines