Package org.awaitility.core
Class CallableCondition.ConditionEvaluationWrapper
java.lang.Object
org.awaitility.core.CallableCondition.ConditionEvaluationWrapper
- All Implemented Interfaces:
ConditionEvaluator
- Enclosing class:
- CallableCondition
private static class CallableCondition.ConditionEvaluationWrapper
extends Object
implements ConditionEvaluator
Wraps and delegates to another callable and invokes the
ConditionEvaluationHandler.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ConditionEvaluationHandler<Object>private final ConditionSettings -
Constructor Summary
ConstructorsConstructorDescriptionConditionEvaluationWrapper(Callable<Boolean> matcher, ConditionSettings settings, ConditionEvaluationHandler<Object> conditionEvaluationHandler) -
Method Summary
Modifier and TypeMethodDescriptionprivate StringgenerateDescriptionPrefix(Callable<Boolean> matcher, String conditionAlias) private StringgenerateMethodDescription(Callable<Boolean> matcher) private StringgetMatchMessage(Callable<Boolean> matcher, String conditionAlias) private StringgetMismatchMessage(Callable<Boolean> matcher, String conditionAlias)
-
Field Details
-
matcher
-
settings
-
conditionEvaluationHandler
-
-
Constructor Details
-
ConditionEvaluationWrapper
ConditionEvaluationWrapper(Callable<Boolean> matcher, ConditionSettings settings, ConditionEvaluationHandler<Object> conditionEvaluationHandler)
-
-
Method Details
-
eval
- Specified by:
evalin interfaceConditionEvaluator- Parameters:
pollInterval- The poll interval for the for this evaluation round- Throws:
Exception
-
getMatchMessage
-
getMismatchMessage
-
generateDescriptionPrefix
-
generateMethodDescription
-