@Test void appendShouldReplaceSlashBySeparator() throws Exception { testee.append(mimeMessage, USER, FOLDER + "/any"); MessageResultIterator messages = mailboxManager.getMailbox(MailboxPath.forUser(USER, FOLDER + ".any"), session) .getMessages(MessageRange.all(), FetchGroup.FULL_CONTENT, session); assertThat(messages).toIterable() .hasSize(1); }
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);  }