14 |
|
|
15 |
|
public class AtomicReferenceArrayTest extends JSR166TestCase { |
16 |
|
public static void main(String[] args) { |
17 |
< |
junit.textui.TestRunner.run(suite()); |
17 |
> |
main(suite(), args); |
18 |
|
} |
19 |
|
public static Test suite() { |
20 |
|
return new TestSuite(AtomicReferenceArrayTest.class); |
36 |
|
public void testConstructor2NPE() { |
37 |
|
try { |
38 |
|
Integer[] a = null; |
39 |
< |
AtomicReferenceArray<Integer> aa = new AtomicReferenceArray<Integer>(a); |
39 |
> |
new AtomicReferenceArray<Integer>(a); |
40 |
|
shouldThrow(); |
41 |
|
} catch (NullPointerException success) {} |
42 |
|
} |