public class ConcurrentRunnerScheduler extends Object implements org.junit.runners.model.RunnerScheduler
| Modifier and Type | Field and Description |
|---|---|
protected CompletionService<Integer> |
completionService
Completion service.
|
protected ExecutorService |
executorService
Executor service.
|
static double |
RATE
Thread creation ration.
|
protected Queue<Future<Integer>> |
tasks
Future tasks.
|
| Constructor and Description |
|---|
ConcurrentRunnerScheduler(Class<?> klass)
Default constructor.
|
public static final double RATE
protected final ExecutorService executorService
protected final CompletionService<Integer> completionService
public ConcurrentRunnerScheduler(Class<?> klass)
klass - The target class test.public void schedule(Runnable childStatement)
schedule in interface org.junit.runners.model.RunnerSchedulerpublic void finished()
finished in interface org.junit.runners.model.RunnerSchedulerCopyright © 2016. All rights reserved.