5 |
|
* Other contributors include John Vint |
6 |
|
*/ |
7 |
|
|
8 |
< |
import junit.framework.*; |
8 |
> |
import static java.util.concurrent.TimeUnit.MILLISECONDS; |
9 |
> |
|
10 |
|
import java.util.ArrayList; |
11 |
|
import java.util.List; |
11 |
– |
import java.util.concurrent.Phaser; |
12 |
|
import java.util.concurrent.CountDownLatch; |
13 |
+ |
import java.util.concurrent.Phaser; |
14 |
|
import java.util.concurrent.TimeoutException; |
14 |
– |
import static java.util.concurrent.TimeUnit.MILLISECONDS; |
15 |
– |
import static java.util.concurrent.TimeUnit.NANOSECONDS; |
16 |
– |
import java.util.concurrent.atomic.AtomicBoolean; |
15 |
|
import java.util.concurrent.atomic.AtomicInteger; |
16 |
|
|
17 |
+ |
import junit.framework.Test; |
18 |
+ |
import junit.framework.TestSuite; |
19 |
+ |
|
20 |
|
public class PhaserTest extends JSR166TestCase { |
21 |
|
|
22 |
|
public static void main(String[] args) { |