THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
- 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
- expectsAscending(Expression) to add an expectation that messages are received in order using the given expression as an ordering Expression
- expectsDescending(Expression) to add an expectation that messages are received in order using the given expression as an ordering Expression
- expectsNoDuplicates(Expression) to add an expectation that no duplicate messages are received; using an Expression to calculate a unique identifier for each message. This could be something like the JMSMessageID if using JMS, or some unique reference number within the message.expectNoDuplicates
Here's another example
Code Block |
---|
resultEndpoint.expectedBodiesReceived("firstMessageBody", "secondMessageBody", "thirdMessageBody"); |
...