@Test void initShouldThrowOnInvalidCondition() { assertThatThrownBy(() -> testee.init(FakeMatcherConfig.builder() .condition("a") .matcherName("matcherName") .build())) .isInstanceOf(MessagingException.class); }
@Override public void init() throws MessagingException { maximumRecipientCount = MailetUtil.getInitParameterAsStrictlyPositiveInteger(getCondition()); }
TooManyRecipients extends GenericMatcher { @Override public void init() throws MessagingException { maximumRecipientCount = MailetUtil.getInitParameterAsStrictlyPositiveInteger(getCondition()); } }
TooManyRecipients extends GenericMatcher { @Override public void init() throws MessagingException { maximumRecipientCount = MailetUtil.getInitParameterAsStrictlyPositiveInteger(getCondition()); }  }
TooManyRecipients extends GenericMatcher { @Override public void init() throws MessagingException { maximumRecipientCount = MailetUtil.getInitParameterAsStrictlyPositiveInteger(getCondition()); }  @Override void init(); @Override Collection<MailAddress> match(Mail mail); }
TooManyRecipients extends GenericMatcher { @Override public void init() throws MessagingException { maximumRecipientCount = MailetUtil.getInitParameterAsStrictlyPositiveInteger(getCondition()); }  @Override void init(); @Override Collection<MailAddress> match(Mail mail);  }