@Test void shouldThrowWhenConditionHasNoValue() { assertThatThrownBy(() -> matcher.init(FakeMatcherConfig.builder() .matcherName("HasMimeType") .condition("abc=") .build())) .isInstanceOf(MailetException.class); }
@Override public void init() throws MessagingException { filteredMimeTypeParameters = parseConfigurationString(Optional.ofNullable(getCondition())); }
HasMimeTypeParameter extends GenericMatcher { @Override public void init() throws MessagingException { filteredMimeTypeParameters = parseConfigurationString(Optional.ofNullable(getCondition())); } }
HasMimeTypeParameter extends GenericMatcher { @Override public void init() throws MessagingException { filteredMimeTypeParameters = parseConfigurationString(Optional.ofNullable(getCondition())); }  }
HasMimeTypeParameter extends GenericMatcher { @Override public void init() throws MessagingException { filteredMimeTypeParameters = parseConfigurationString(Optional.ofNullable(getCondition())); }  @Override void init(); @Override Collection<MailAddress> match(Mail mail); }
HasMimeTypeParameter extends GenericMatcher { @Override public void init() throws MessagingException { filteredMimeTypeParameters = parseConfigurationString(Optional.ofNullable(getCondition())); }  @Override void init(); @Override Collection<MailAddress> match(Mail mail);  }