Package org.awaitility.core
Class AssertionCondition
java.lang.Object
org.awaitility.core.AssertionCondition
Condition implementation which takes an executable assertion which should throw
AssertionError on assertion failure.- Since:
- 1.6.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ConditionAwaiterprivate final ConditionEvaluationHandler<Object>private String -
Constructor Summary
ConstructorsConstructorDescriptionAssertionCondition(ThrowingRunnable supplier, ConditionSettings settings) Constructor for AssertionCondition. -
Method Summary
Modifier and TypeMethodDescriptionawait()await.private StringgenerateDescriptionPrefix(ThrowingRunnable supplier, String conditionAlias, boolean includeAliasIfDefined) private StringgenerateMethodDescription(ThrowingRunnable supplier) private StringgetMatchMessage(ThrowingRunnable supplier, String conditionAlias) private StringgetMismatchMessage(ThrowingRunnable supplier, String exceptionMessage, String conditionAlias, boolean includeAliasIfDefined)
-
Field Details
-
conditionAwaiter
-
lastExceptionMessage
-
conditionEvaluationHandler
-
-
Constructor Details
-
AssertionCondition
Constructor for AssertionCondition.
- Parameters:
supplier- aRunnableobject.settings- aConditionSettingsobject.
-
-
Method Details
-
getMatchMessage
-
getMismatchMessage
private String getMismatchMessage(ThrowingRunnable supplier, String exceptionMessage, String conditionAlias, boolean includeAliasIfDefined) -
generateDescriptionPrefix
private String generateDescriptionPrefix(ThrowingRunnable supplier, String conditionAlias, boolean includeAliasIfDefined) -
generateMethodDescription
-
await
await.
-