public class MockInOutProcessingElement extends MockProcessingElement
MockProcessingElement
to be used for the unit tests. This implementation will
receive a message context, apply MockProcessingElement.msgCtxManipulationFunction
if present and send it to the assigned
nextElement
.Constructor and Description |
---|
MockInOutProcessingElement() |
MockInOutProcessingElement(Function<XMessageContext,XMessageContext> msgCtxManipulationFunction) |
Modifier and Type | Method and Description |
---|---|
ExecutionResult |
getNextResult() |
protected ExecutionResult |
handleMessageContext(XMessageContext xMessageContext) |
void |
setNextElement(XProcessingElement nextElement) |
getMessageContext, getMessageView, process
destroy, destroyElement, getAdditionalProperties, getBeanName, getEntityId, getErrorHandler, getFlowId, getMetricsEngine, getProject, getProjectId, getProjectVersion, getResource, getServerConfig, getStatus, init, initElement, processMessage, setBeanName, setErrorHandler, setFlowId, setProject
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
cast
public MockInOutProcessingElement()
public MockInOutProcessingElement(Function<XMessageContext,XMessageContext> msgCtxManipulationFunction)
protected ExecutionResult handleMessageContext(XMessageContext xMessageContext)
handleMessageContext
in class MockProcessingElement
public void setNextElement(XProcessingElement nextElement)
public ExecutionResult getNextResult()
Copyright © 2016–2019 AdroitLogic. All rights reserved.