public class MockInOnlyProcessingElement extends MockProcessingElement
MockProcessingElement to be used for the unit tests. This implementation will
only receive a message context, apply MockProcessingElement.msgCtxManipulationFunction if present and will end the message flow
with the expectedResult as execution result.| Constructor and Description |
|---|
MockInOnlyProcessingElement(ExecutionResult expectedResult) |
MockInOnlyProcessingElement(ExecutionResult expectedResult,
Function<XMessageContext,XMessageContext> msgCtxManipulationFunction) |
| Modifier and Type | Method and Description |
|---|---|
protected ExecutionResult |
handleMessageContext(XMessageContext xMessageContext) |
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 MockInOnlyProcessingElement(ExecutionResult expectedResult)
public MockInOnlyProcessingElement(ExecutionResult expectedResult, Function<XMessageContext,XMessageContext> msgCtxManipulationFunction)
protected ExecutionResult handleMessageContext(XMessageContext xMessageContext)
handleMessageContext in class MockProcessingElementCopyright © 2016–2019 AdroitLogic. All rights reserved.