@Test void initShouldThrowOnMissingCondition() { assertThatThrownBy(() -> matcher.init(FakeMatcherConfig.builder() .matcherName("RecipientDomainIs") .build())) .isInstanceOf(NullPointerException.class); }
@Override public void init() { String condition = getCondition(); Preconditions.checkNotNull(condition, "'condition' should not be null"); recipientDomains = parseDomainsList(condition); }
RecipientDomainIs extends GenericRecipientMatcher { @Override public void init() { String condition = getCondition(); Preconditions.checkNotNull(condition, "'condition' should not be null"); recipientDomains = parseDomainsList(condition); } }
RecipientDomainIs extends GenericRecipientMatcher { @Override public void init() { String condition = getCondition(); Preconditions.checkNotNull(condition, "'condition' should not be null"); recipientDomains = parseDomainsList(condition); }  }
RecipientDomainIs extends GenericRecipientMatcher { @Override public void init() { String condition = getCondition(); Preconditions.checkNotNull(condition, "'condition' should not be null"); recipientDomains = parseDomainsList(condition); }  @Override void init(); @Override boolean matchRecipient(MailAddress recipient); }
RecipientDomainIs extends GenericRecipientMatcher { @Override public void init() { String condition = getCondition(); Preconditions.checkNotNull(condition, "'condition' should not be null"); recipientDomains = parseDomainsList(condition); }  @Override void init(); @Override boolean matchRecipient(MailAddress recipient);  }