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:
$Revision: 906378 $

Nested Class Summary
 class AssertionClause.PredicateValueBuilder
          Public class needed for fluent builders
 
Constructor Summary
AssertionClause()
           
 
Method Summary
protected  void addPredicate(Predicate predicate)
           
protected  void applyAssertionOn(MockEndpoint endpoint, int index, Exchange exchange)
          Performs any assertions on the given exchange
 ValueBuilder expression(Expression expression)
          Specify an Expression instance
 ExpressionClause<AssertionClause> predicate()
           
 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, 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, ruby, setExpression, setExpressionType, setExpressionValue, setLanguage, simple, sql, 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
 

Constructor Detail

AssertionClause

public AssertionClause()
Method Detail

expression

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

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()

applyAssertionOn

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


addPredicate

protected void addPredicate(Predicate predicate)


Copyright © 2007-2010 The Apache Software Foundation. All Rights Reserved.