public class ResponseAssertionMessageProcessor extends AssertionMessageProcessor implements InterceptingMessageProcessor, FlowConstructAware, Startable, NonBlockingSupported
| Modifier and Type | Field and Description |
|---|---|
protected String |
responseExpression |
expression, expressionManager, flowConstruct, message, needToMatchCount, timeoutPHASE_NAME| Constructor and Description |
|---|
ResponseAssertionMessageProcessor() |
| Modifier and Type | Method and Description |
|---|---|
MuleEvent |
process(MuleEvent event) |
MuleEvent |
processRequest(MuleEvent event) |
MuleEvent |
processResponse(MuleEvent event) |
Boolean |
responseCountFailOrNullEvent() |
Boolean |
responseExpressionFailed() |
void |
setListener(MessageProcessor listener) |
void |
setResponseCount(int responseCount) |
void |
setResponseExpression(String responseExpression) |
void |
setResponseSameThread(boolean responseSameThread) |
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, reset, setCount, setExpression, setFlowConstruct, setMessageclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetFlowConstructprotected String responseExpression
public void start()
throws InitialisationException
start in interface Startablestart in class AssertionMessageProcessorInitialisationExceptionpublic MuleEvent process(MuleEvent event) throws MuleException
process in interface MessageProcessorprocess in class AssertionMessageProcessorMuleExceptionpublic MuleEvent processRequest(MuleEvent event) throws MuleException
MuleExceptionpublic MuleEvent processResponse(MuleEvent event) throws MuleException
MuleExceptionpublic void verify()
throws InterruptedException
AssertionMessageProcessorverify in class AssertionMessageProcessorInterruptedExceptionpublic Boolean responseCountFailOrNullEvent() throws InterruptedException
InterruptedExceptionpublic Boolean responseExpressionFailed()
public void setListener(MessageProcessor listener)
setListener in interface MessageSourcepublic void setResponseExpression(String responseExpression)
public void setResponseCount(int responseCount)
public void setResponseSameThread(boolean responseSameThread)
Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.