@Test void appendShouldNotAppendToEmptyFolder() { assertThatThrownBy(() -> testee.append(mimeMessage, USER, EMPTY_FOLDER)) .isInstanceOf(MessagingException.class); }
public ComposedMessageId append(MimeMessage mail, Username user, String folder) throws MessagingException { MailboxSession session = createMailboxSession(user); return append(mail, user, useSlashAsSeparator(folder, session), session) .getId(); }
MailboxAppender { public ComposedMessageId append(MimeMessage mail, Username user, String folder) throws MessagingException { MailboxSession session = createMailboxSession(user); return append(mail, user, useSlashAsSeparator(folder, session), session) .getId(); } }
MailboxAppender { public ComposedMessageId append(MimeMessage mail, Username user, String folder) throws MessagingException { MailboxSession session = createMailboxSession(user); return append(mail, user, useSlashAsSeparator(folder, session), session) .getId(); } MailboxAppender(MailboxManager mailboxManager); }
MailboxAppender { public ComposedMessageId append(MimeMessage mail, Username user, String folder) throws MessagingException { MailboxSession session = createMailboxSession(user); return append(mail, user, useSlashAsSeparator(folder, session), session) .getId(); } MailboxAppender(MailboxManager mailboxManager); ComposedMessageId append(MimeMessage mail, Username user, String folder); MailboxSession createMailboxSession(Username user); }
MailboxAppender { public ComposedMessageId append(MimeMessage mail, Username user, String folder) throws MessagingException { MailboxSession session = createMailboxSession(user); return append(mail, user, useSlashAsSeparator(folder, session), session) .getId(); } MailboxAppender(MailboxManager mailboxManager); ComposedMessageId append(MimeMessage mail, Username user, String folder); MailboxSession createMailboxSession(Username user);  }