A
- the type of repeatable annotation supported by this ExecutionCondition
abstract 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)
ExecutionCondition
ExtensionContext
.
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 ExecutionCondition
context
- the current extension context; never null
null
protected abstract ConditionEvaluationResult evaluate(A annotation)
protected abstract ConditionEvaluationResult getNoDisabledConditionsEncounteredResult()
private void logResult(A annotation, java.lang.reflect.AnnotatedElement annotatedElement, ConditionEvaluationResult result)