@Test void initShouldRejectEmptyPrefix() { assertThatThrownBy(() -> matcher.init(FakeMatcherConfig.builder() .matcherName("HasHeader") .condition("") .build())) .isInstanceOf(MessagingException.class); }
@Override public void init() throws MessagingException { prefix = getCondition(); if (Strings.isNullOrEmpty(prefix)) { throw new MessagingException("Expecting prefix not to be empty or null with RemoveMimeHeaderByPrefix"); } }
HasHeaderWithPrefix extends GenericMatcher { @Override public void init() throws MessagingException { prefix = getCondition(); if (Strings.isNullOrEmpty(prefix)) { throw new MessagingException("Expecting prefix not to be empty or null with RemoveMimeHeaderByPrefix"); } } }
HasHeaderWithPrefix extends GenericMatcher { @Override public void init() throws MessagingException { prefix = getCondition(); if (Strings.isNullOrEmpty(prefix)) { throw new MessagingException("Expecting prefix not to be empty or null with RemoveMimeHeaderByPrefix"); } }  }
HasHeaderWithPrefix extends GenericMatcher { @Override public void init() throws MessagingException { prefix = getCondition(); if (Strings.isNullOrEmpty(prefix)) { throw new MessagingException("Expecting prefix not to be empty or null with RemoveMimeHeaderByPrefix"); } }  @Override void init(); @Override String getMatcherInfo(); @Override Collection<MailAddress> match(Mail mail); }
HasHeaderWithPrefix extends GenericMatcher { @Override public void init() throws MessagingException { prefix = getCondition(); if (Strings.isNullOrEmpty(prefix)) { throw new MessagingException("Expecting prefix not to be empty or null with RemoveMimeHeaderByPrefix"); } }  @Override void init(); @Override String getMatcherInfo(); @Override Collection<MailAddress> match(Mail mail);  }