C - type of conditionspublic class WaitConditionInvocationHandler<C extends Conditions<?>>
extends java.lang.Object
implements java.lang.reflect.InvocationHandler
| Constructor and Description |
|---|
WaitConditionInvocationHandler(java.lang.Class<C> conditionClass,
FluentWait wait,
java.lang.String context,
java.util.function.Supplier<C> conditionSupplier)
Creates a new wait condition invocation handler.
|
| Modifier and Type | Method and Description |
|---|---|
protected C |
applyNegation(C conditions,
boolean ignoreNegation)
Apply the current negation to the given condition
|
protected C |
conditions()
Get the underlying conditions of wait matcher.
|
protected C |
conditions(boolean ignoreNot)
Get the underlying conditions of wait matcher.
|
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args) |
protected C |
messageBuilder()
Builds a message builder proxy.
|
protected C |
messageBuilder(boolean ignoreNegation)
Builds a message builder proxy.
|
protected java.util.function.Function<java.lang.String,java.lang.String> |
messageCustomizer()
Build the final message from default message.
|
protected void |
until(C condition,
C messageBuilder,
java.util.function.Function<C,java.lang.Boolean> conditionFunction)
Perform the wait.
|
protected void |
until(java.util.function.Predicate<FluentControl> present,
java.lang.String message)
Perform the wait.
|
protected void |
until(java.util.function.Predicate<FluentControl> present,
java.util.function.Supplier<java.lang.String> messageSupplier)
Perform the wait.
|
public WaitConditionInvocationHandler(java.lang.Class<C> conditionClass, FluentWait wait, java.lang.String context, java.util.function.Supplier<C> conditionSupplier)
conditionClass - condition classwait - fluent waitcontext - base context of generated message if condition is not verifiedconditionSupplier - supplier of conditionsprotected C conditions()
protected C conditions(boolean ignoreNot)
ignoreNot - true if the negation should be ignored.protected C applyNegation(C conditions, boolean ignoreNegation)
conditions - conditions.ignoreNegation - true if the negation should be ignored.protected C messageBuilder()
protected C messageBuilder(boolean ignoreNegation)
ignoreNegation - true if the negation should be ignored.protected java.util.function.Function<java.lang.String,java.lang.String> messageCustomizer()
protected void until(java.util.function.Predicate<FluentControl> present, java.lang.String message)
present - predicate to wait for.message - message to use.protected void until(java.util.function.Predicate<FluentControl> present, java.util.function.Supplier<java.lang.String> messageSupplier)
present - predicate to wait for.messageSupplier - default message to use.protected void until(C condition, C messageBuilder, java.util.function.Function<C,java.lang.Boolean> conditionFunction)
condition - condition object to wait formessageBuilder - message builder matching the condition objectconditionFunction - condition fonctionpublic java.lang.Object invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
throws java.lang.Throwable
invoke in interface java.lang.reflect.InvocationHandlerjava.lang.ThrowableCopyright © 2018 FluentLenium. All Rights Reserved.