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

Comparing jsr166/src/test/tck/AtomicReferenceTest.java (file contents):
Revision 1.6 by dl, Sat Dec 27 19:26:43 2003 UTC vs.
Revision 1.7 by dl, Fri Jan 9 20:07:36 2004 UTC

# Line 127 | Line 127 | public class AtomicReferenceTest extends
127          }
128      }
129  
130 +    /**
131 +     * toString returns current value.
132 +     */
133 +    public void testToString() {
134 +        AtomicReference<Integer> ai = new AtomicReference<Integer>(one);
135 +        assertEquals(ai.toString(), one.toString());
136 +        ai.set(two);
137 +        assertEquals(ai.toString(), two.toString());
138 +    }
139 +
140   }
141  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines