@Test public void initShouldThrowWhenNoTargetFolderEntry() { assertThatThrownBy(() -> testee.init(FakeMailetConfig.builder() .build())) .isInstanceOf(IllegalStateException.class); }
@Override public void init() throws MessagingException { targetFolderName = AttributeValue.of(validateMailetConfiguration(TARGET_FOLDER_NAME)); }
WithStorageDirective extends GenericMailet { @Override public void init() throws MessagingException { targetFolderName = AttributeValue.of(validateMailetConfiguration(TARGET_FOLDER_NAME)); } }
WithStorageDirective extends GenericMailet { @Override public void init() throws MessagingException { targetFolderName = AttributeValue.of(validateMailetConfiguration(TARGET_FOLDER_NAME)); } @Inject  WithStorageDirective(UsersRepository usersRepository); }
WithStorageDirective extends GenericMailet { @Override public void init() throws MessagingException { targetFolderName = AttributeValue.of(validateMailetConfiguration(TARGET_FOLDER_NAME)); } @Inject  WithStorageDirective(UsersRepository usersRepository); @Override void init(); @Override void service(Mail mail); ThrowingConsumer<MailAddress> addStorageDirective(Mail mail); }
WithStorageDirective extends GenericMailet { @Override public void init() throws MessagingException { targetFolderName = AttributeValue.of(validateMailetConfiguration(TARGET_FOLDER_NAME)); } @Inject  WithStorageDirective(UsersRepository usersRepository); @Override void init(); @Override void service(Mail mail); ThrowingConsumer<MailAddress> addStorageDirective(Mail mail); static final String TARGET_FOLDER_NAME; }