@Test public void buildFullPathShouldDenyMailboxPathNotBelongingToTheUser() { expectedException.expect(DeniedAccessOnSharedMailboxException.class); pathConverter.buildFullPath("#any"); }
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);  }