We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.testbench.parallel.
Class ParallelScheduler
- java.lang.Object
-
- com.vaadin.testbench.parallel.ParallelScheduler
-
All Implemented Interfaces:
org.junit.runners.model.RunnerScheduler
public class ParallelScheduler extends Object implements org.junit.runners.model.RunnerScheduler
JUnit scheduler capable of running multiple tets in parallel. Each test is run in its own thread. Uses an
ExecutorService
to manage the threads.
-
-
Constructor Summary
Constructors Constructor and Description ParallelScheduler(ExecutorService service)
Creates a parallel scheduler which will use the given executor service when submitting test jobs.
-
-
-
Constructor Detail
-
ParallelScheduler
public ParallelScheduler(ExecutorService service)
Creates a parallel scheduler which will use the given executor service when submitting test jobs.
Parameters:
service
- The service to use for tests
-
-
Method Detail
-
schedule
public void schedule(Runnable childStatement)
Specified by:
schedule
in interfaceorg.junit.runners.model.RunnerScheduler
-
finished
public void finished()
Specified by:
finished
in interfaceorg.junit.runners.model.RunnerScheduler
-
-