public class SchedulerStrategy extends Object
Parallel annotation at the class level to run tests in that class in parallel. If the
Parallel annotation is not specified then the scheduler is not overridden and JUnits strategy is used to run the
tests.| Constructor and Description |
|---|
SchedulerStrategy() |
| Modifier and Type | Method and Description |
|---|---|
static org.junit.runners.model.RunnerScheduler |
getScheduler(Class<?> testClass,
Boolean policyApplied)
Get the correct Scheduler requested by the user based on the
Parallel annotation. |
static org.junit.runners.model.RunnerScheduler |
getSchedulerForSuite(Class<?> suiteClass)
Utility method to get the Scheduler for Suite class
|
public static org.junit.runners.model.RunnerScheduler getScheduler(Class<?> testClass, Boolean policyApplied)
Parallel annotation.testClass - the Class under testpolicyApplied - Identifies whether a test Policy identified by TestPolicy annotation has been applied or notRunnerSchedulerpublic static org.junit.runners.model.RunnerScheduler getSchedulerForSuite(Class<?> suiteClass)
suiteClass - the suiteClassRunnerSchedulerCopyright © 2014. All rights reserved.