* @throws MailboxException
* @throws UnsupportedEncodingException
*/
private void feedMockMailboxManager() throws MailboxException, UnsupportedEncodingException {
MailboxPath mailboxPath = null;
for (int i=0; i < DOMAIN_COUNT; i++) {
for (int j=0; j < USER_COUNT; j++) {
String user = "user" + j + "@localhost" + i;
String folderName = "INBOX";
MailboxSession mailboxSession = getMockMailboxManager().createSystemSession(user, LoggerFactory.getLogger("mailboxmanager-test"));
mailboxPath = new MailboxPath("#private", user, folderName);
createMailbox(mailboxSession, mailboxPath);
for (int k=0; k < SUB_MAILBOXES_COUNT; k++) {
String subFolderName = folderName + ".SUB_FOLDER_" + k;
mailboxPath = new MailboxPath("#private", user, subFolderName);
createMailbox(mailboxSession, mailboxPath);
for (int l=0; l < SUB_SUB_MAILBOXES_COUNT; l++) {
String subSubfolderName = subFolderName + ".SUBSUB_FOLDER_" + l;
mailboxPath = new MailboxPath("#private", user, subSubfolderName);
createMailbox(mailboxSession, mailboxPath);
}
}