THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
You can see from the javadoc of MockEndpoint the various helper methods you can use. You can use other methods such as
- assertIsSatisfied() to test that the expectations were met
- expectedMessageCount(int) to define the expected message count on the endpoint
- expectedBodiesReceived(...) to define the expected bodies that should be received (in order)
- expectMessagesAscending
- expectMessagesDescending
- expectNoDuplicates
Here's another example
Code Block |
---|
resultEndpoint.expectedBodiesReceived("firstMessageBody", "secondMessageBody", "thirdMessageBody"); |
...