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 java.lang.Object implements ConditionEvaluator
Wraps and delegates to another callable and invokes theConditionEvaluationHandler.
-
-
Field Summary
Fields Modifier and Type Field Description private ConditionEvaluationHandler<java.lang.Object>conditionEvaluationHandlerprivate java.util.concurrent.Callable<java.lang.Boolean>matcherprivate ConditionSettingssettings
-
Constructor Summary
Constructors Constructor Description ConditionEvaluationWrapper(java.util.concurrent.Callable<java.lang.Boolean> matcher, ConditionSettings settings, ConditionEvaluationHandler<java.lang.Object> conditionEvaluationHandler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConditionEvaluationResulteval(java.time.Duration pollInterval)private java.lang.StringgenerateDescriptionPrefix(java.util.concurrent.Callable<java.lang.Boolean> matcher, java.lang.String conditionAlias)private java.lang.StringgenerateMethodDescription(java.util.concurrent.Callable<java.lang.Boolean> matcher)private java.lang.StringgetMatchMessage(java.util.concurrent.Callable<java.lang.Boolean> matcher, java.lang.String conditionAlias)private java.lang.StringgetMismatchMessage(java.util.concurrent.Callable<java.lang.Boolean> matcher, java.lang.String conditionAlias)
-
-
-
Field Detail
-
matcher
private final java.util.concurrent.Callable<java.lang.Boolean> matcher
-
settings
private final ConditionSettings settings
-
conditionEvaluationHandler
private final ConditionEvaluationHandler<java.lang.Object> conditionEvaluationHandler
-
-
Constructor Detail
-
ConditionEvaluationWrapper
ConditionEvaluationWrapper(java.util.concurrent.Callable<java.lang.Boolean> matcher, ConditionSettings settings, ConditionEvaluationHandler<java.lang.Object> conditionEvaluationHandler)
-
-
Method Detail
-
eval
public ConditionEvaluationResult eval(java.time.Duration pollInterval) throws java.lang.Exception
- Specified by:
evalin interfaceConditionEvaluator- Parameters:
pollInterval- The poll interval for the for this evaluation round- Throws:
java.lang.Exception
-
getMatchMessage
private java.lang.String getMatchMessage(java.util.concurrent.Callable<java.lang.Boolean> matcher, java.lang.String conditionAlias)
-
getMismatchMessage
private java.lang.String getMismatchMessage(java.util.concurrent.Callable<java.lang.Boolean> matcher, java.lang.String conditionAlias)
-
generateDescriptionPrefix
private java.lang.String generateDescriptionPrefix(java.util.concurrent.Callable<java.lang.Boolean> matcher, java.lang.String conditionAlias)
-
generateMethodDescription
private java.lang.String generateMethodDescription(java.util.concurrent.Callable<java.lang.Boolean> matcher)
-
-