@Test public void buildFullPathShouldAcceptFullAbsoluteUserPath() { String mailboxName = "mailboxName"; assertThat(pathConverter.buildFullPath(MailboxConstants.USER_NAMESPACE + PATH_DELIMITER + mailboxName)) .isEqualTo(MailboxPath.forUser(USERNAME, mailboxName)); }
public MailboxPath buildFullPath(String mailboxName) { if (Strings.isNullOrEmpty(mailboxName)) { return buildRelativePath(""); } if (isAbsolute(mailboxName)) { return buildAbsolutePath(mailboxName); } else { return buildRelativePath(mailboxName); } }
PathConverter { public MailboxPath buildFullPath(String mailboxName) { if (Strings.isNullOrEmpty(mailboxName)) { return buildRelativePath(""); } if (isAbsolute(mailboxName)) { return buildAbsolutePath(mailboxName); } else { return buildRelativePath(mailboxName); } } }
PathConverter { public MailboxPath buildFullPath(String mailboxName) { if (Strings.isNullOrEmpty(mailboxName)) { return buildRelativePath(""); } if (isAbsolute(mailboxName)) { return buildAbsolutePath(mailboxName); } else { return buildRelativePath(mailboxName); } } private  PathConverter(ImapSession session); }
PathConverter { public MailboxPath buildFullPath(String mailboxName) { if (Strings.isNullOrEmpty(mailboxName)) { return buildRelativePath(""); } if (isAbsolute(mailboxName)) { return buildAbsolutePath(mailboxName); } else { return buildRelativePath(mailboxName); } } private  PathConverter(ImapSession session); static PathConverter forSession(ImapSession session); MailboxPath buildFullPath(String mailboxName); }
PathConverter { public MailboxPath buildFullPath(String mailboxName) { if (Strings.isNullOrEmpty(mailboxName)) { return buildRelativePath(""); } if (isAbsolute(mailboxName)) { return buildAbsolutePath(mailboxName); } else { return buildRelativePath(mailboxName); } } private  PathConverter(ImapSession session); static PathConverter forSession(ImapSession session); MailboxPath buildFullPath(String mailboxName);  }