9 |
|
import junit.framework.*; |
10 |
|
import java.util.*; |
11 |
|
|
12 |
< |
public class AtomicReferenceFieldUpdaterTest extends TestCase{ |
12 |
> |
public class AtomicReferenceFieldUpdaterTest extends JSR166TestCase{ |
13 |
|
volatile Integer x = null; |
14 |
|
Object z; |
15 |
|
Integer w; |
23 |
|
return new TestSuite(AtomicReferenceFieldUpdaterTest.class); |
24 |
|
} |
25 |
|
|
26 |
– |
static final Integer zero = new Integer(0); |
27 |
– |
static final Integer one = new Integer(1); |
28 |
– |
static final Integer two = new Integer(2); |
29 |
– |
static final Integer m3 = new Integer(-3); |
30 |
– |
static final Integer m4 = new Integer(-4); |
31 |
– |
static final Integer m5 = new Integer(-5); |
32 |
– |
static final Integer seven = new Integer(7); |
33 |
– |
static final Integer m10 = new Integer(-10); |
34 |
– |
|
26 |
|
public void testConstructor(){ |
27 |
|
try{ |
28 |
|
AtomicReferenceFieldUpdater<AtomicReferenceFieldUpdaterTest, Integer> |