1 |
|
/* |
2 |
|
* Written by Doug Lea with assistance from members of JCP JSR-166 |
3 |
|
* Expert Group and released to the public domain, as explained at |
4 |
< |
* http://creativecommons.org/licenses/publicdomain |
4 |
> |
* http://creativecommons.org/publicdomain/zero/1.0/ |
5 |
|
* Other contributors include Andrew Wright, Jeffrey Hayes, |
6 |
|
* Pat Fisher, Mike Judd. |
7 |
|
*/ |
12 |
|
import java.util.*; |
13 |
|
|
14 |
|
public class AtomicReferenceArrayTest extends JSR166TestCase { |
15 |
< |
public static void main (String[] args) { |
16 |
< |
junit.textui.TestRunner.run (suite()); |
15 |
> |
public static void main(String[] args) { |
16 |
> |
junit.textui.TestRunner.run(suite()); |
17 |
|
} |
18 |
|
public static Test suite() { |
19 |
|
return new TestSuite(AtomicReferenceArrayTest.class); |
51 |
|
assertEquals(a[i], ai.get(i)); |
52 |
|
} |
53 |
|
|
54 |
– |
|
54 |
|
/** |
55 |
|
* get and set for out of bound indices throw IndexOutOfBoundsException |
56 |
|
*/ |
197 |
|
} |
198 |
|
} |
199 |
|
|
201 |
– |
|
200 |
|
/** |
201 |
|
* toString returns current value. |
202 |
|
*/ |