public abstract class AssertionClause extends ExpressionClauseSupport<ValueBuilder> implements Runnable
Modifier and Type | Class and Description |
---|---|
class |
AssertionClause.PredicateValueBuilder
Public class needed for fluent builders
|
Modifier and Type | Field and Description |
---|---|
protected int |
currentIndex |
protected MockEndpoint |
mock |
Constructor and Description |
---|
AssertionClause(MockEndpoint mock) |
Modifier and Type | Method and Description |
---|---|
protected void |
addPredicate(Predicate predicate) |
protected void |
applyAssertionOn(MockEndpoint endpoint,
int index,
Exchange exchange)
Performs any assertions on the given exchange
|
TimeClause |
arrives()
Adds a
TimeClause predicate for message arriving. |
ValueBuilder |
expression(Expression expression)
Specify an
Expression instance |
ValueBuilder |
expression(ExpressionDefinition expression) |
ExpressionClause<AssertionClause> |
predicate()
Adds the given predicate to this assertion clause
|
AssertionClause |
predicate(Predicate predicate)
Adds the given predicate to this assertion clause
|
attachments, body, body, configureExpression, constant, createExpression, el, exchange, exchangePattern, getExpressionType, getExpressionValue, groovy, header, headers, inMessage, javaScript, jsonpath, jsonpath, jxpath, jxpath, language, method, method, method, method, method, method, mvel, ognl, outBody, outBody, outHeader, outHeaders, outMessage, php, properties, property, python, ref, ruby, setExpressionType, setExpressionValue, simple, simple, spel, sql, tokenize, tokenize, tokenize, tokenize, tokenize, tokenize, tokenize, tokenizePair, tokenizeXMLPair, vtdxml, vtdxml, vtdxml, xpath, xpath, xpath, xpath, xpath, xpath, xpath, xpath, xpath, xquery, xquery, xquery, xquery, xquery, xquery, xquery, xquery, xquery, xtokenize
protected final MockEndpoint mock
protected volatile int currentIndex
public AssertionClause(MockEndpoint mock)
public ValueBuilder expression(Expression expression)
ExpressionClauseSupport
Expression
instanceexpression
in class ExpressionClauseSupport<ValueBuilder>
public ValueBuilder expression(ExpressionDefinition expression)
expression
in class ExpressionClauseSupport<ValueBuilder>
public AssertionClause predicate(Predicate predicate)
public ExpressionClause<AssertionClause> predicate()
public TimeClause arrives()
TimeClause
predicate for message arriving.protected void applyAssertionOn(MockEndpoint endpoint, int index, Exchange exchange)
protected void addPredicate(Predicate predicate)
Apache Camel