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.23 by jsr166, Fri Jun 10 20:01:21 2011 UTC vs.
Revision 1.24 by jsr166, Fri Jun 10 20:17:11 2011 UTC

# Line 91 | Line 91 | public class AtomicIntegerTest extends J
91          assertTrue(ai.compareAndSet(1, 2));
92          t.join(LONG_DELAY_MS);
93          assertFalse(t.isAlive());
94 <        assertEquals(ai.get(), 3);
94 >        assertEquals(3, ai.get());
95      }
96  
97      /**
# Line 210 | Line 210 | public class AtomicIntegerTest extends J
210          assertEquals("0", ai.toString());
211          for (int x : VALUES) {
212              ai.set(x);
213 <            assertEquals(ai.toString(), Integer.toString(x));
213 >            assertEquals(Integer.toString(x), ai.toString());
214          }
215      }
216  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines