Package org.apache.camel.component.mock
Class AssertionClause
java.lang.Object
org.apache.camel.component.mock.MockExpressionClauseSupport<MockValueBuilder>
org.apache.camel.component.mock.AssertionClause
- All Implemented Interfaces:
Runnable
- Direct Known Subclasses:
AssertionClauseTask
public abstract class AssertionClause
extends MockExpressionClauseSupport<MockValueBuilder>
implements Runnable
A builder of assertions on message exchanges
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionfinal classPublic class needed for fluent builders -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddPredicate(org.apache.camel.Predicate predicate) protected voidapplyAssertionOn(MockEndpoint endpoint, int index, org.apache.camel.Exchange exchange) Performs any assertions on the given exchangearrives()Adds aTimeClausepredicate for the message arriving.expression(org.apache.camel.Expression expression) Specify anExpressioninstancelanguage(org.apache.camel.ExpressionFactory expression) Specify anExpressionFactoryinstanceAdds the given predicate to this assertion clausepredicate(org.apache.camel.Predicate predicate) Adds the given predicate to this assertion clauseMethods inherited from class org.apache.camel.component.mock.MockExpressionClauseSupport
body, body, configureExpression, constant, createExpression, exchange, exchangePattern, exchangeProperties, exchangeProperty, getExpressionType, getExpressionValue, groovy, header, headers, hl7terser, inMessage, jsonpath, language, method, method, mvel, ognl, ref, setExpressionType, setExpressionValue, simple, spel, variable, variables, xpath, xquery
-
Field Details
-
mock
-
currentIndex
protected volatile int currentIndex
-
-
Constructor Details
-
AssertionClause
-
-
Method Details
-
expression
Description copied from class:MockExpressionClauseSupportSpecify anExpressioninstance- Overrides:
expressionin classMockExpressionClauseSupport<MockValueBuilder>
-
language
Description copied from class:MockExpressionClauseSupportSpecify anExpressionFactoryinstance- Overrides:
languagein classMockExpressionClauseSupport<MockValueBuilder>
-
predicate
Adds the given predicate to this assertion clause -
predicate
Adds the given predicate to this assertion clause -
arrives
Adds aTimeClausepredicate for the message arriving. -
applyAssertionOn
protected void applyAssertionOn(MockEndpoint endpoint, int index, org.apache.camel.Exchange exchange) Performs any assertions on the given exchange -
addPredicate
protected void addPredicate(org.apache.camel.Predicate predicate)
-