public class ResponseAssertionMessageProcessor extends AssertionMessageProcessor implements InterceptingMessageProcessor, FlowConstructAware, org.mule.runtime.api.lifecycle.Startable
ReactiveProcessor.ProcessingType| Modifier and Type | Field and Description |
|---|---|
protected String |
responseExpression |
expression, expressionManager, flowConstruct, message, needToMatchCount, timeout| Constructor and Description |
|---|
ResponseAssertionMessageProcessor() |
| Modifier and Type | Method and Description |
|---|---|
org.reactivestreams.Publisher<Event> |
apply(org.reactivestreams.Publisher<Event> publisher) |
protected String |
generateTaskToken() |
Event |
process(Event event) |
Boolean |
responseCountFailOrNullEvent() |
Boolean |
responseExpressionFailed() |
void |
setFlowConstruct(FlowConstruct flowConstruct) |
void |
setListener(Processor listener) |
void |
setResponseCount(int responseCount) |
void |
setResponseExpression(String responseExpression) |
void |
setResponseSameTask(boolean responseSameTask) |
void |
start() |
void |
verify()
If result evaluated to false in some processed event or the last processed event was null, then assert fails, otherwise:
count was set & count processes were done => ok
count was set & count processes were not done => fail
count was not set & at least one processing were done => ok
|
countFailOrNullEvent, expressionFailed, failureMessagePrefix, reset, setCount, setExpression, setMessageclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetProcessingTypeprotected String responseExpression
public void start()
throws org.mule.runtime.api.lifecycle.InitialisationException
start in interface org.mule.runtime.api.lifecycle.Startablestart in class AssertionMessageProcessororg.mule.runtime.api.lifecycle.InitialisationExceptionpublic Event process(Event event) throws org.mule.runtime.api.exception.MuleException
process in interface Processorprocess in class AssertionMessageProcessororg.mule.runtime.api.exception.MuleExceptionpublic org.reactivestreams.Publisher<Event> apply(org.reactivestreams.Publisher<Event> publisher)
protected String generateTaskToken()
public void verify()
throws InterruptedException
AssertionMessageProcessorverify in class AssertionMessageProcessorInterruptedExceptionpublic Boolean responseCountFailOrNullEvent() throws InterruptedException
InterruptedExceptionpublic Boolean responseExpressionFailed()
public void setListener(Processor listener)
setListener in interface InterceptingMessageProcessorpublic void setResponseExpression(String responseExpression)
public void setResponseCount(int responseCount)
public void setResponseSameTask(boolean responseSameTask)
public void setFlowConstruct(FlowConstruct flowConstruct)
setFlowConstruct in interface FlowConstructAwaresetFlowConstruct in class AssertionMessageProcessorCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.