Ihar Hancharenka 5dff80e88e first
2023-03-27 16:52:17 +03:00

11 строки
629 B
Plaintext

https://docs.spring.io/spring-integration/docs/current/reference/html/testing.html
https://github.com/spring-projects/spring-integration-samples
https://docs.spring.io/spring-integration/docs/current/reference/html/testing.html#assertj-conditions-and-predicates
Starting with version 5.2,
the MessagePredicate is introduced to be used in the AssertJ matches() assertion.
It requires a Message object as an expectation.
And also ot can be configured with headers to exclude from expectation as well as from actual message to assert.
https://livebook.manning.com/book/spring-integration-in-action/chapter-18/