RepetitionExtension implements the following extension APIs to support
repetitions of a @RepeatedTest method.
ParameterResolver to resolve RepetitionInfo argumentsTestWatcher to track the failure countExecutionCondition to disable the repetition if the
failure threshold has been
exceeded| Modifier and Type | Field and Description |
|---|---|
| private final DefaultRepetitionInfo |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| repetitionInfo | back to summary |
|---|---|
| private final DefaultRepetitionInfo repetitionInfo | |
| RepetitionExtension | back to summary |
|---|---|
| pack-priv RepetitionExtension(DefaultRepetitionInfo repetitionInfo) | |
| evaluateExecutionCondition | back to summary |
|---|---|
| public ConditionEvaluationResult evaluateExecutionCondition(ExtensionContext context) Implements org. Doc from org. Evaluate this condition for the supplied An enabled result indicates that the container or test should be executed; whereas, a disabled result indicates that the container or test should not be executed.
| |
| getTestInstantiationExtensionContextScope | back to summary |
|---|---|
| public TestInstantiationAwareExtension. Overrides default org. Determine whether this extension should receive a test-method scoped
If an extension returns
When a test-method scoped
Note The behavior which is enabled by returning
| |
| resolveParameter | back to summary |
|---|---|
| public RepetitionInfo resolveParameter(ParameterContext parameterContext, ExtensionContext extensionContext) Implements org. Doc from org. Resolve an argument for the This method is only called by the framework if The
| |
| supportsParameter | back to summary |
|---|---|
| public boolean supportsParameter(ParameterContext parameterContext, ExtensionContext extensionContext) Implements org. Doc from org. Determine if this resolver supports resolution of an argument for the
The
| |
| testFailed | back to summary |
|---|---|
public void testFailed(ExtensionContext context, @Nullable Throwable cause)
| |