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, 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 MockInOnlyProcessingElement(ExecutionResult expectedResult)
public MockInOnlyProcessingElement(ExecutionResult expectedResult, Function<XMessageContext,XMessageContext> msgCtxManipulationFunction)
protected ExecutionResult handleMessageContext(XMessageContext xMessageContext)
handleMessageContext
in class MockProcessingElement
Copyright © 2016–2019 AdroitLogic. All rights reserved.