13 |
|
|
14 |
|
public class AtomicIntegerArrayTest extends JSR166TestCase { |
15 |
|
|
16 |
< |
public static void main (String[] args) { |
17 |
< |
junit.textui.TestRunner.run (suite()); |
16 |
> |
public static void main(String[] args) { |
17 |
> |
junit.textui.TestRunner.run(suite()); |
18 |
|
} |
19 |
|
public static Test suite() { |
20 |
|
return new TestSuite(AtomicIntegerArrayTest.class); |
120 |
|
assertTrue(ai.compareAndSet(i, 2,-4)); |
121 |
|
assertEquals(-4,ai.get(i)); |
122 |
|
assertFalse(ai.compareAndSet(i, -5,7)); |
123 |
< |
assertFalse((7 == ai.get(i))); |
123 |
> |
assertEquals(-4,ai.get(i)); |
124 |
|
assertTrue(ai.compareAndSet(i, -4,7)); |
125 |
|
assertEquals(7,ai.get(i)); |
126 |
|
} |