public class AssertionMessageProcessor extends org.mule.runtime.api.meta.AbstractAnnotatedObject implements Processor, org.mule.runtime.api.lifecycle.Startable
ReactiveProcessor.ProcessingType| Modifier and Type | Field and Description |
|---|---|
protected String |
expression |
protected ExpressionManager |
expressionManager |
protected String |
message |
protected boolean |
needToMatchCount |
protected int |
timeout |
| Constructor and Description |
|---|
AssertionMessageProcessor() |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
countFailOrNullEvent() |
Boolean |
expressionFailed() |
protected String |
failureMessagePrefix() |
Event |
process(Event event) |
void |
setCount(int count) |
void |
setExpression(String expression) |
void |
setExpressionManager(ExpressionManager expressionManager) |
void |
setMessage(String message) |
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
|
getAnnotation, getAnnotations, getLocation, setAnnotationsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetProcessingTypeprotected String expression
protected String message
protected boolean needToMatchCount
protected int timeout
@Inject protected ExpressionManager expressionManager
public void setExpression(String expression)
public void start()
throws org.mule.runtime.api.lifecycle.InitialisationException
start in interface org.mule.runtime.api.lifecycle.Startableorg.mule.runtime.api.lifecycle.InitialisationExceptionpublic void verify()
throws InterruptedException
InterruptedExceptionprotected String failureMessagePrefix()
public Boolean countFailOrNullEvent() throws InterruptedException
InterruptedExceptionpublic Boolean expressionFailed()
public void setMessage(String message)
public void setCount(int count)
public void setExpressionManager(ExpressionManager expressionManager)
Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.