C - type of conditionspublic class WaitConditionInvocationHandler<C extends Conditions<?>> extends Object implements InvocationHandler
| Constructor and Description |
|---|
WaitConditionInvocationHandler(Class<C> conditionClass,
FluentWait wait,
String context,
com.google.common.base.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.
|
Object |
invoke(Object proxy,
Method method,
Object[] args) |
protected C |
messageBuilder()
Builds a message builder proxy.
|
protected C |
messageBuilder(boolean ignoreNegation)
Builds a message builder proxy.
|
protected com.google.common.base.Function<String,String> |
messageCustomizer()
Build the final message from default message.
|
protected void |
until(C condition,
C messageBuilder,
com.google.common.base.Function<C,Boolean> conditionFunction)
Perform the wait.
|
protected void |
until(com.google.common.base.Predicate<FluentControl> present,
String message)
Perform the wait.
|
protected void |
until(com.google.common.base.Predicate<FluentControl> present,
com.google.common.base.Supplier<String> messageSupplier)
Perform the wait.
|
public WaitConditionInvocationHandler(Class<C> conditionClass, FluentWait wait, String context, com.google.common.base.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 com.google.common.base.Function<String,String> messageCustomizer()
protected void until(com.google.common.base.Predicate<FluentControl> present, String message)
present - predicate to wait for.message - message to use.protected void until(com.google.common.base.Predicate<FluentControl> present, com.google.common.base.Supplier<String> messageSupplier)
present - predicate to wait for.messageSupplier - default message to use.protected void until(C condition, C messageBuilder, com.google.common.base.Function<C,Boolean> conditionFunction)
condition - condition object to wait formessageBuilder - message builder matching the condition objectconditionFunction - condition fonctionCopyright © 2016 FluentLenium. All Rights Reserved.