public class MessageMatcher extends org.hamcrest.BaseMatcher<Message<?>>
@Test
public void testSomething() {
Message<String> expected = ...;
Message<String> result = ...;
assertThat(result, sameExceptImmutableHeaders(expected));
}
@Factory
public static Matcher<Message<?>> sameExceptImmutableHeaders(Message<?> expected) {
return new MessageMatcher(expected);
}
Constructor and Description |
---|
MessageMatcher(Message<?> operand) |
Modifier and Type | Method and Description |
---|---|
void |
describeTo(org.hamcrest.Description description) |
boolean |
matches(Object arg) |