@Test void shouldThrowWhenNullCondition() { assertThatThrownBy(() -> matcher.init(FakeMatcherConfig.builder() .matcherName("SenderHostIs") .mailetContext(mailContext) .condition(null) .build())) .isInstanceOf(NullPointerException.class); }
@Override public void init() { String condition = getCondition(); Preconditions.checkNotNull(condition, "'condition' should not be null"); senderHosts = parseDomainsList(condition); }
SenderHostIs extends GenericMatcher { @Override public void init() { String condition = getCondition(); Preconditions.checkNotNull(condition, "'condition' should not be null"); senderHosts = parseDomainsList(condition); } }
SenderHostIs extends GenericMatcher { @Override public void init() { String condition = getCondition(); Preconditions.checkNotNull(condition, "'condition' should not be null"); senderHosts = parseDomainsList(condition); }  }
SenderHostIs extends GenericMatcher { @Override public void init() { String condition = getCondition(); Preconditions.checkNotNull(condition, "'condition' should not be null"); senderHosts = parseDomainsList(condition); }  @Override void init(); @Override Collection<MailAddress> match(Mail mail); }
SenderHostIs extends GenericMatcher { @Override public void init() { String condition = getCondition(); Preconditions.checkNotNull(condition, "'condition' should not be null"); senderHosts = parseDomainsList(condition); }  @Override void init(); @Override Collection<MailAddress> match(Mail mail);  }