public class ParallelScheduler extends Object implements org.junit.runners.model.RunnerScheduler
RunnerScheduler implementation to run tests in Parallel.| Constructor and Description |
|---|
ParallelScheduler()
Construct a new ParallelScheduler.
|
ParallelScheduler(int threadsToStart)
Construct a new ParallelScheduler
This creates a fixed thread pool executor Service,
where the user passes the number of threads he wants to start
|
| Modifier and Type | Method and Description |
|---|---|
void |
finished()
Method called when all the test methods have been executed
by the
ExecutorService instance. |
ExecutorService |
getExecutorService() |
void |
schedule(Runnable childStatement)
Schedule a Runnable
Statement |
public ParallelScheduler()
public ParallelScheduler(int threadsToStart)
threadsToStart - the number of threads in the thread poolpublic void schedule(Runnable childStatement)
Statementschedule in interface org.junit.runners.model.RunnerSchedulerchildStatement - a runnable implementationpublic void finished()
ExecutorService instance.
This method is used to shutdown and await for termination of all threads.finished in interface org.junit.runners.model.RunnerSchedulerpublic ExecutorService getExecutorService()
Copyright © 2014. All rights reserved.