13 |
|
|
14 |
|
public class AtomicReferenceTest extends JSR166TestCase { |
15 |
|
public static void main(String[] args) { |
16 |
< |
junit.textui.TestRunner.run(suite()); |
16 |
> |
main(suite(), args); |
17 |
|
} |
18 |
|
public static Test suite() { |
19 |
|
return new TestSuite(AtomicReferenceTest.class); |
134 |
|
* toString returns current value. |
135 |
|
*/ |
136 |
|
public void testToString() { |
137 |
< |
AtomicReference<Integer> ai = new AtomicReference<Integer>(one); |
137 |
> |
AtomicReference<Integer> ai = new AtomicReference<>(one); |
138 |
|
assertEquals(one.toString(), ai.toString()); |
139 |
|
ai.set(two); |
140 |
|
assertEquals(two.toString(), ai.toString()); |