|
||||||||||
| 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
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 |
|
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 |
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 predicate)
Adds the given predicate to this assertion clause |
|
ValueBuilder |
property(String name)
Returns a predicate and value builder for property on an exchange |
|
| 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 predicate)
public ExpressionClause<AssertionClause> predicate()
public ValueBuilder header(String name)
public ValueBuilder property(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 predicate)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||