10 |
|
import java.util.concurrent.atomic.*; |
11 |
|
|
12 |
|
public class AtomicMarkableReferenceTest extends JSR166TestCase { |
13 |
< |
public static void main (String[] args) { |
14 |
< |
junit.textui.TestRunner.run (suite()); |
13 |
> |
public static void main(String[] args) { |
14 |
> |
junit.textui.TestRunner.run(suite()); |
15 |
|
} |
16 |
|
public static Test suite() { |
17 |
|
return new TestSuite(AtomicMarkableReferenceTest.class); |
18 |
|
} |
19 |
|
|
20 |
|
/** |
21 |
< |
* constructor initializes to given reference and mark |
21 |
> |
* constructor initializes to given reference and mark |
22 |
|
*/ |
23 |
|
public void testConstructor() { |
24 |
|
AtomicMarkableReference ai = new AtomicMarkableReference(one, false); |
30 |
|
} |
31 |
|
|
32 |
|
/** |
33 |
< |
* get returns the last values of reference and mark set |
33 |
> |
* get returns the last values of reference and mark set |
34 |
|
*/ |
35 |
|
public void testGetSet() { |
36 |
|
boolean[] mark = new boolean[1]; |