21 |
|
public class Atomic8Test extends JSR166TestCase { |
22 |
|
|
23 |
|
public static void main(String[] args) { |
24 |
< |
junit.textui.TestRunner.run(suite()); |
24 |
> |
main(suite(), args); |
25 |
|
} |
26 |
|
public static Test suite() { |
27 |
|
return new TestSuite(Atomic8Test.class); |
191 |
|
assertEquals(new Integer(10), a.get()); |
192 |
|
} |
193 |
|
|
194 |
– |
|
194 |
|
/** |
195 |
|
* AtomicLongArray getAndUpdate returns previous value and updates |
196 |
|
* result of supplied function |
436 |
|
assertEquals(10, anIntField); |
437 |
|
} |
438 |
|
|
440 |
– |
|
439 |
|
/** |
440 |
|
* AtomicReferenceFieldUpdater getAndUpdate returns previous value |
441 |
|
* and updates result of supplied function |