Class MessagePredicate
java.lang.Object
org.springframework.integration.test.predicate.MessagePredicate
Predicate to make assertions about message equality easier. Usage:
@Test
public void testSomething() {
Message<String> expected = ...;
Message<String> result = ...;
assertThat(result).matches(new MessagePredicate(expected));
}
- Since:
- 5.2
- Author:
- Artem Bilan