Uses of Class
org.springframework.integration.test.mock.MockMessageHandler
Package
Description
Utilities for mocking integration components.
-
Uses of MockMessageHandler in org.springframework.integration.test.mock
Modifier and TypeMethodDescriptionMockMessageHandler.handleNext
(Consumer<Message<?>> nextMessageConsumer) Add theConsumer
to the stack to handle the next incoming message.MockMessageHandler.handleNextAndReply
(Function<Message<?>, ?> nextMessageFunction) Add theFunction
to the stack to handle the next incoming message and produce reply for it.static MockMessageHandler
MockIntegration.mockMessageHandler()
Build aMockMessageHandler
instance.static MockMessageHandler
MockIntegration.mockMessageHandler
(org.mockito.ArgumentCaptor<Message<?>> messageArgumentCaptor) Build aMockMessageHandler
instance based on the providedArgumentCaptor
.