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
body, body, configureExpression, constant, createExpression, el, exchange, exchangePattern, getExpression, getExpressionType, getExpressionValue, getLanguage, groovy, header, headers, inMessage, javaScript, jxpath, language, method, method, method, method, method, method, mvel, ognl, outBody, outBody, outHeader, outHeaders, outMessage, php, properties, property, python, ref, ruby, setExpression, setExpressionType, setExpressionValue, setLanguage, simple, simple, spel, sql, tokenize, tokenize, tokenize, 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