public class ResponseAssertionMessageProcessor extends AssertionMessageProcessor implements InterceptingMessageProcessor, org.mule.runtime.api.lifecycle.Startable
ReactiveProcessor.ProcessingType| Modifier and Type | Field and Description |
|---|---|
protected String |
responseExpression |
expression, expressionManager, message, needToMatchCount| Constructor and Description |
|---|
ResponseAssertionMessageProcessor() |
| Modifier and Type | Method and Description |
|---|---|
org.reactivestreams.Publisher<CoreEvent> |
apply(org.reactivestreams.Publisher<CoreEvent> publisher) |
protected String |
generateTaskToken() |
CoreEvent |
process(CoreEvent event) |
Boolean |
responseCountFailOrNullEvent() |
Boolean |
responseExpressionFailed() |
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, setCount, setExpression, setExpressionManager, setMessagegetAnnotation, getAnnotations, getLocation, getRootContainerName, setAnnotationsclone, 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 CoreEvent process(CoreEvent event) throws org.mule.runtime.api.exception.MuleException
process in interface Processorprocess in class AssertionMessageProcessororg.mule.runtime.api.exception.MuleExceptionpublic org.reactivestreams.Publisher<CoreEvent> apply(org.reactivestreams.Publisher<CoreEvent> publisher)
protected String generateTaskToken()
public void verify()
throws InterruptedException
AssertionMessageProcessorverify in interface FlowAssertionverify 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)
Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.