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, processdestroy, destroyElement, getAdditionalProperties, getBeanName, getEntityId, getErrorHandler, getFlowId, getMetricsEngine, getProject, getProjectId, getProjectVersion, getResource, getServerConfig, getStatus, init, initElement, processMessage, setBeanName, setErrorHandler, setFlowId, setProjectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcastpublic MockInOutProcessingElement()
public MockInOutProcessingElement(Function<XMessageContext,XMessageContext> msgCtxManipulationFunction)
protected ExecutionResult handleMessageContext(XMessageContext xMessageContext)
handleMessageContext in class MockProcessingElementpublic void setNextElement(XProcessingElement nextElement)
public ExecutionResult getNextResult()
Copyright © 2016–2019 AdroitLogic. All rights reserved.