|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.camel.component.mock.AssertionClause
public abstract class AssertionClause
A builder of assertions on message exchanges
Nested Class Summary | |
---|---|
class |
AssertionClause.PredicateValueBuilder
|
Constructor Summary | |
---|---|
AssertionClause()
|
Method Summary | ||
---|---|---|
protected void |
addPredicate(Predicate<Exchange> predicate)
|
|
protected void |
applyAssertionOn(MockEndpoint endpoint,
int index,
Exchange 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<Exchange> |
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 |
|
ExpressionClause<AssertionClause> |
predicate()
|
|
AssertionClause |
predicate(Predicate<Exchange> 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 predicate(Predicate<Exchange> predicate)
public ExpressionClause<AssertionClause> predicate()
public ValueBuilder<Exchange> 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, Exchange exchange)
protected void addPredicate(Predicate<Exchange> predicate)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |