# | 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 |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |