6 |
|
* Pat Fisher, Mike Judd. |
7 |
|
*/ |
8 |
|
|
9 |
– |
import junit.framework.*; |
9 |
|
import java.util.Arrays; |
10 |
|
import java.util.concurrent.atomic.AtomicReferenceArray; |
11 |
|
|
12 |
+ |
import junit.framework.Test; |
13 |
+ |
import junit.framework.TestSuite; |
14 |
+ |
|
15 |
|
public class AtomicReferenceArrayTest extends JSR166TestCase { |
16 |
|
public static void main(String[] args) { |
17 |
|
junit.textui.TestRunner.run(suite()); |
201 |
|
x.set(i, new Integer(-i)); |
202 |
|
} |
203 |
|
AtomicReferenceArray y = serialClone(x); |
204 |
< |
assertTrue(x != y); |
204 |
> |
assertNotSame(x, y); |
205 |
|
assertEquals(x.length(), y.length()); |
206 |
|
for (int i = 0; i < SIZE; i++) { |
207 |
|
assertEquals(x.get(i), y.get(i)); |