|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Predicate<E>
Evaluates a binary predicate on the message exchange to support things like scripting languages, XQuery or SQL as well as any arbitrary Java expression.
Method Summary | |
---|---|
void |
assertMatches(String text,
E exchange)
Allows this predicate to be used nicely in testing to generate a nicely formatted exception and message if this predicate does not match for the given exchange. |
boolean |
matches(E exchange)
Evaluates the predicate on the message exchange and returns true if this exchange matches the predicate |
Method Detail |
---|
boolean matches(E exchange)
exchange
- the message exchange
void assertMatches(String text, E exchange) throws AssertionError
text
- the description to use in the exception messageexchange
- the exchange to evaluate the expression on
AssertionError
- if the predicate does not match
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |