Class MessageProxy
java.lang.Object
io.fluentlenium.core.conditions.message.MessageProxy
Provides message proxy implementations of interface that records calls to build message from methods annotated with
Message, NotMessage and MessageContext.-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Tstatic <T> Tbuilder(Class<T> messageClass, List<MessageBuilderCall> calls) static StringBuild the message from a proxystatic <T> Tstatic <T> Twrap(Class<T> messageClass, Object instance, List<MessageBuilderCall> calls)
-
Method Details
-
wrap
- Type Parameters:
T- type of the class to wrap.- Parameters:
messageClass- class to wrap in the proxy.instance- original instance.context- initial context for generated message.- Returns:
- a proxy generating message from annotations.
-
wrap
- Type Parameters:
T- type of the class to wrap.- Parameters:
messageClass- class to wrap in the proxy.instance- original instance.calls- call stack of the proxy.- Returns:
- a proxy generating message from annotations.
-
builder
- Type Parameters:
T- type of the class to wrap.- Parameters:
messageClass- class to wrap in the proxy.context- initial context for generated message.- Returns:
- a proxy generating message from annotations.
-
builder
- Type Parameters:
T- type of the class to wrap.- Parameters:
messageClass- class to wrap in the proxy.calls- call stack of the proxy.- Returns:
- a proxy generating message from annotations.
-
message
Build the message from a proxy- Parameters:
proxy- message builder proxy- Returns:
- generated message.
-