6 |
|
* Pat Fisher, Mike Judd. |
7 |
|
*/ |
8 |
|
|
9 |
– |
import junit.framework.*; |
9 |
|
import java.util.concurrent.atomic.AtomicReferenceFieldUpdater; |
10 |
|
|
11 |
+ |
import junit.framework.Test; |
12 |
+ |
import junit.framework.TestSuite; |
13 |
+ |
|
14 |
|
public class AtomicReferenceFieldUpdaterTest extends JSR166TestCase { |
15 |
|
volatile Integer x = null; |
16 |
|
Object z; |
37 |
|
updaterFor("y"); |
38 |
|
shouldThrow(); |
39 |
|
} catch (RuntimeException success) { |
40 |
< |
assertTrue(success.getCause() != null); |
40 |
> |
assertNotNull(success.getCause()); |
41 |
|
} |
42 |
|
} |
43 |
|
|