org.apache.camel.component.mock
Class AssertionClause

java.lang.Object
  extended by org.apache.camel.builder.ExpressionClauseSupport<ValueBuilder>
      extended by org.apache.camel.component.mock.AssertionClause
All Implemented Interfaces:
Runnable

public abstract class AssertionClause
extends ExpressionClauseSupport<ValueBuilder>
implements Runnable

A builder of assertions on message exchanges

Version:

Nested Class Summary
 class AssertionClause.PredicateValueBuilder
          Public class needed for fluent builders
 
Field Summary
protected  int currentIndex
           
protected  MockEndpoint mock
           
 
Constructor Summary
AssertionClause(MockEndpoint mock)
           
 
Method Summary
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
 
Methods inherited from class org.apache.camel.builder.ExpressionClauseSupport
attachments, body, body, configureExpression, constant, createExpression, el, exchange, exchangePattern, getExpressionType, getExpressionValue, groovy, header, headers, inMessage, javaScript, 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, xpath, xpath, xpath, xpath, xpath, xpath, xquery, xquery, xquery, xquery, xquery, xquery
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.lang.Runnable
run
 

Field Detail

mock

protected final MockEndpoint mock

currentIndex

protected volatile int currentIndex
Constructor Detail

AssertionClause

public AssertionClause(MockEndpoint mock)
Method Detail

expression

public ValueBuilder expression(Expression expression)
Description copied from class: ExpressionClauseSupport
Specify an Expression instance

Overrides:
expression in class ExpressionClauseSupport<ValueBuilder>

expression

public ValueBuilder expression(ExpressionDefinition expression)
Overrides:
expression in class ExpressionClauseSupport<ValueBuilder>

predicate

public AssertionClause predicate(Predicate predicate)
Adds the given predicate to this assertion clause


predicate

public ExpressionClause<AssertionClause> predicate()
Adds the given predicate to this assertion clause


arrives

public TimeClause arrives()
Adds a TimeClause predicate for message arriving.


applyAssertionOn

protected void applyAssertionOn(MockEndpoint endpoint,
                                int index,
                                Exchange exchange)
Performs any assertions on the given exchange


addPredicate

protected void addPredicate(Predicate predicate)


Apache CAMEL