@Factory public static <T> Matcher<Message<?>> hasHeader(String key, Matcher<?> valueMatcher) { return new HeaderMatcher(MapContentMatchers.hasEntry(key, valueMatcher)); }
@Factory public static <T> Matcher<Message<?>> hasHeaderKey(String key) { return new HeaderMatcher(MapContentMatchers.hasKey(key)); }
@Factory public static Matcher<Message<?>> hasExpirationDate(Matcher<Long> matcher) { return new HeaderMatcher( MapContentMatchers.hasEntry(IntegrationMessageHeaderAccessor.EXPIRATION_DATE, matcher)); }
@Factory public static Matcher<Message<?>> hasTimestamp(Matcher<Long> matcher) { return new HeaderMatcher(MapContentMatchers.hasEntry(MessageHeaders.TIMESTAMP, matcher)); }
@Factory public static Matcher<Message<?>> hasSequenceSize(Matcher<Integer> value) { return new HeaderMatcher( MapContentMatchers.hasEntry(IntegrationMessageHeaderAccessor.SEQUENCE_SIZE, value)); }
@Factory public static Matcher<Message<?>> hasSequenceNumber(Matcher<Integer> matcher) { return new HeaderMatcher( MapContentMatchers.hasEntry(IntegrationMessageHeaderAccessor.SEQUENCE_NUMBER, matcher)); }
@Factory public static <T> Matcher<Message<?>> hasCorrelationId(T value) { return new HeaderMatcher( MapContentMatchers.hasEntry(IntegrationMessageHeaderAccessor.CORRELATION_ID, value)); }
@Factory public static <T> Matcher<Message<?>> hasMessageId(T value) { return new HeaderMatcher(MapContentMatchers.hasEntry(MessageHeaders.ID, value)); }
@Factory public static Matcher<Message<?>> hasAllHeaders(Map<String, ?> entries) { return new HeaderMatcher(MapContentMatchers.hasAllEntries(entries)); }