|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.camel.component.mock.AssertionClause<E>
public abstract class AssertionClause<E extends Exchange>
A builder of assertions on message exchanges
Nested Class Summary | |
---|---|
class |
AssertionClause.PredicateValueBuilder
|
Constructor Summary | |
---|---|
AssertionClause()
|
Method Summary | ||
---|---|---|
protected void |
addPredicate(Predicate<E> predicate)
|
|
protected void |
applyAssertionOn(MockEndpoint endpoint,
int index,
E exchange)
Performs any assertions on the given exchange |
|
AssertionClause.PredicateValueBuilder |
body()
Returns a predicate and value builder for the inbound body on an exchange |
|
|
bodyAs(Class<T> type)
Returns a predicate and value builder for the inbound message body as a specific type |
|
ValueBuilder<E> |
header(String name)
Returns a predicate and value builder for headers on an exchange |
|
AssertionClause.PredicateValueBuilder |
outBody()
Returns a predicate and value builder for the outbound body on an exchange |
|
|
outBody(Class<T> type)
Returns a predicate and value builder for the outbound message body as a specific type |
|
AssertionClause<E> |
predicate(Predicate<E> predicate)
Adds the given predicate to this assertion clause |
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 |
---|
public AssertionClause()
Method Detail |
---|
public AssertionClause<E> predicate(Predicate<E> predicate)
public ValueBuilder<E> header(String name)
public AssertionClause.PredicateValueBuilder body()
public <T> AssertionClause.PredicateValueBuilder bodyAs(Class<T> type)
public AssertionClause.PredicateValueBuilder outBody()
public <T> AssertionClause.PredicateValueBuilder outBody(Class<T> type)
protected void applyAssertionOn(MockEndpoint endpoint, int index, E exchange)
protected void addPredicate(Predicate<E> predicate)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |