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

Comparing jsr166/src/test/tck/AtomicMarkableReferenceTest.java (file contents):
Revision 1.17 by jsr166, Tue May 31 16:16:23 2011 UTC vs.
Revision 1.18 by jsr166, Fri Jun 10 20:01:21 2011 UTC

# Line 22 | Line 22 | public class AtomicMarkableReferenceTest
22       */
23      public void testConstructor() {
24          AtomicMarkableReference ai = new AtomicMarkableReference(one, false);
25 <        assertSame(one,ai.getReference());
25 >        assertSame(one, ai.getReference());
26          assertFalse(ai.isMarked());
27          AtomicMarkableReference a2 = new AtomicMarkableReference(null, true);
28          assertNull(a2.getReference());
# Line 35 | Line 35 | public class AtomicMarkableReferenceTest
35      public void testGetSet() {
36          boolean[] mark = new boolean[1];
37          AtomicMarkableReference ai = new AtomicMarkableReference(one, false);
38 <        assertSame(one,ai.getReference());
38 >        assertSame(one, ai.getReference());
39          assertFalse(ai.isMarked());
40          assertSame(one, ai.get(mark));
41          assertFalse(mark[0]);
42          ai.set(two, false);
43 <        assertSame(two,ai.getReference());
43 >        assertSame(two, ai.getReference());
44          assertFalse(ai.isMarked());
45          assertSame(two, ai.get(mark));
46          assertFalse(mark[0]);
47          ai.set(one, true);
48 <        assertSame(one,ai.getReference());
48 >        assertSame(one, ai.getReference());
49          assertTrue(ai.isMarked());
50          assertSame(one, ai.get(mark));
51          assertTrue(mark[0]);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines