Class ConcurrentRunner
- java.lang.Object
-
- org.junit.runner.Runner
-
- org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
-
- org.junit.runners.BlockJUnit4ClassRunner
-
- org.glassfish.jersey.test.util.runner.ConcurrentRunner
-
- All Implemented Interfaces:
org.junit.runner.Describable,org.junit.runner.manipulation.Filterable,org.junit.runner.manipulation.Orderable,org.junit.runner.manipulation.Sortable
@Beta @Deprecated public class ConcurrentRunner extends org.junit.runners.BlockJUnit4ClassRunner
Deprecated.in connection with transition to JUnit 5 usage of this class is obsolete. Alternatively can be used specific junit 5 executions tools.Jersey implementation of a JUnitRunnerthat runs all test methods within a single test class in parallel. The main purpose is to avoid having HTTP container launched separately for each individual test. Order in which individual test methods are invoked is not guaranteed and is non-deterministic. Test methods that needs a separate container or needs to run separately for other reasons could be annotated withRunSeparatelyannotation. These test methods will then be excluded from parallel processing, and will be invoked as if no special concurrent runner was involved.- Author:
- Jakub Podlesak
-
-
Field Summary
Fields Modifier and Type Field Description intFINISH_WAIT_CYCLE_MSDeprecated.intTEST_THREADSDeprecated.
-
Constructor Summary
Constructors Constructor Description ConcurrentRunner(Class<?> clazz)Deprecated.Create a new runner for given test class.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected voidrunChild(org.junit.runners.model.FrameworkMethod method, org.junit.runner.notification.RunNotifier notifier)Deprecated.protected voidvalidateTestMethods(List<Throwable> errors)Deprecated.-
Methods inherited from class org.junit.runners.BlockJUnit4ClassRunner
collectInitializationErrors, computeTestMethods, createTest, createTest, describeChild, getChildren, getTestRules, isIgnored, methodBlock, methodInvoker, possiblyExpectingExceptions, rules, testName, validateConstructor, validateFields, validateInstanceMethods, validateNoNonStaticInnerClass, validateOnlyOneConstructor, validateZeroArgConstructor, withAfters, withBefores, withPotentialTimeout
-
Methods inherited from class org.junit.runners.ParentRunner
childrenInvoker, classBlock, classRules, createTestClass, filter, getDescription, getName, getRunnerAnnotations, getTestClass, order, run, runLeaf, setScheduler, sort, validatePublicVoidNoArgMethods, withAfterClasses, withBeforeClasses, withInterruptIsolation
-
-
-
-
Field Detail
-
FINISH_WAIT_CYCLE_MS
public final int FINISH_WAIT_CYCLE_MS
Deprecated.- See Also:
- Constant Field Values
-
TEST_THREADS
public final int TEST_THREADS
Deprecated.- See Also:
- Constant Field Values
-
-
Method Detail
-
validateTestMethods
protected void validateTestMethods(List<Throwable> errors)
Deprecated.- Overrides:
validateTestMethodsin classorg.junit.runners.BlockJUnit4ClassRunner
-
runChild
protected void runChild(org.junit.runners.model.FrameworkMethod method, org.junit.runner.notification.RunNotifier notifier)Deprecated.- Overrides:
runChildin classorg.junit.runners.BlockJUnit4ClassRunner
-
-