@Beta public class ConcurrentRunner extends org.junit.runners.BlockJUnit4ClassRunner
Runner
that 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 with RunSeparately
annotation.
These test methods will then be excluded
from parallel processing, and will be invoked
as if no special concurrent runner was involved.Modifier and Type | Field and Description |
---|---|
int |
FINISH_WAIT_CYCLE_MS |
int |
TEST_THREADS |
Constructor and Description |
---|
ConcurrentRunner(Class<?> clazz)
Create a new runner for given test class.
|
Modifier and Type | Method and Description |
---|---|
protected void |
runChild(org.junit.runners.model.FrameworkMethod method,
org.junit.runner.notification.RunNotifier notifier) |
protected void |
validateTestMethods(List<Throwable> errors) |
collectInitializationErrors, computeTestMethods, createTest, describeChild, getChildren, getTestRules, isIgnored, methodBlock, methodInvoker, possiblyExpectingExceptions, rules, testName, validateConstructor, validateFields, validateInstanceMethods, validateNoNonStaticInnerClass, validateOnlyOneConstructor, validateZeroArgConstructor, withAfters, withBefores, withPotentialTimeout
public final int FINISH_WAIT_CYCLE_MS
public final int TEST_THREADS
protected void validateTestMethods(List<Throwable> errors)
validateTestMethods
in class org.junit.runners.BlockJUnit4ClassRunner
protected void runChild(org.junit.runners.model.FrameworkMethod method, org.junit.runner.notification.RunNotifier notifier)
runChild
in class org.junit.runners.BlockJUnit4ClassRunner
Copyright © 2007-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.