9 |
|
import junit.framework.*; |
10 |
|
import java.util.*; |
11 |
|
|
12 |
< |
public class AtomicIntegerFieldUpdaterTest extends TestCase{ |
12 |
> |
public class AtomicIntegerFieldUpdaterTest extends JSR166TestCase { |
13 |
|
volatile int x = 0; |
14 |
+ |
long z; |
15 |
|
|
16 |
|
public static void main(String[] args){ |
17 |
|
junit.textui.TestRunner.run(suite()); |
30 |
|
fail("Exception not thrown"); |
31 |
|
} |
32 |
|
catch (RuntimeException rt) {} |
33 |
+ |
} |
34 |
+ |
|
35 |
+ |
public void testConstructor2(){ |
36 |
+ |
try{ |
37 |
+ |
AtomicIntegerFieldUpdater<AtomicIntegerFieldUpdaterTest> |
38 |
+ |
a = AtomicIntegerFieldUpdater.newUpdater |
39 |
+ |
(getClass(), "z"); |
40 |
+ |
fail("Exception not thrown"); |
41 |
+ |
} |
42 |
+ |
catch (RuntimeException rt) {} |
43 |
|
} |
44 |
|
|
45 |
|
public void testGetSet(){ |