A - the type of repeatable annotation supported by this ExecutionConditionabstract class AbstractRepeatableAnnotationCondition<A extends java.lang.annotation.Annotation> extends java.lang.Object implements ExecutionCondition
ExecutionCondition implementations that support
repeatable annotations.| Modifier and Type | Field and Description |
|---|---|
private java.lang.Class<A> |
annotationType |
private Logger |
logger |
| Constructor and Description |
|---|
AbstractRepeatableAnnotationCondition(java.lang.Class<A> annotationType) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract ConditionEvaluationResult |
evaluate(A annotation) |
ConditionEvaluationResult |
evaluateExecutionCondition(ExtensionContext context)
Evaluate this condition for the supplied
ExtensionContext. |
protected abstract ConditionEvaluationResult |
getNoDisabledConditionsEncounteredResult() |
private void |
logResult(A annotation,
java.lang.reflect.AnnotatedElement annotatedElement,
ConditionEvaluationResult result) |
private final Logger logger
private final java.lang.Class<A extends java.lang.annotation.Annotation> annotationType
AbstractRepeatableAnnotationCondition(java.lang.Class<A> annotationType)
public final ConditionEvaluationResult evaluateExecutionCondition(ExtensionContext context)
ExecutionConditionExtensionContext.
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.
evaluateExecutionCondition in interface ExecutionConditioncontext - the current extension context; never nullnullprotected abstract ConditionEvaluationResult evaluate(A annotation)
protected abstract ConditionEvaluationResult getNoDisabledConditionsEncounteredResult()
private void logResult(A annotation, java.lang.reflect.AnnotatedElement annotatedElement, ConditionEvaluationResult result)