use of com.zimbra.cs.service.mail.SendMsgTest.DirectInsertionMailboxManager in project zm-mailbox by Zimbra.
the class ShareInfoTest method setUp.
/**
* @throws java.lang.Exception
*/
@Before
public void setUp() throws Exception {
MailboxTestUtil.initServer();
Provisioning prov = Provisioning.getInstance();
prov.createAccount("test@zimbra.com", "secret", Maps.<String, Object>newHashMap());
Map<String, Object> attrs = Maps.newHashMap();
attrs.put(Provisioning.A_zimbraId, UUID.randomUUID().toString());
prov.createAccount("rcpt@zimbra.com", "secret", attrs);
// this MailboxManager does everything except use SMTP to deliver mail
MailboxManager.setInstance(new DirectInsertionMailboxManager());
}
use of com.zimbra.cs.service.mail.SendMsgTest.DirectInsertionMailboxManager in project zm-mailbox by Zimbra.
the class DeleteHeaderTest method init.
@BeforeClass
public static void init() throws Exception {
MailboxTestUtil.initServer();
MailboxTestUtil.clearData();
Provisioning prov = Provisioning.getInstance();
Map<String, Object> attrs = Maps.newHashMap();
prov.createDomain("zimbra.com", attrs);
attrs = Maps.newHashMap();
attrs.put(Provisioning.A_zimbraId, UUID.randomUUID().toString());
prov.createAccount("test@zimbra.com", "secret", attrs);
attrs = Maps.newHashMap();
attrs.put(Provisioning.A_zimbraId, UUID.randomUUID().toString());
prov.createAccount("test2@zimbra.com", "secret", attrs);
attrs = Maps.newHashMap();
attrs.put(Provisioning.A_zimbraId, UUID.randomUUID().toString());
prov.createAccount("test3@zimbra.com", "secret", attrs);
// this MailboxManager does everything except actually send mail
MailboxManager.setInstance(new DirectInsertionMailboxManager());
}
use of com.zimbra.cs.service.mail.SendMsgTest.DirectInsertionMailboxManager in project zm-mailbox by Zimbra.
the class ErejectTest method init.
@BeforeClass
public static void init() throws Exception {
MailboxTestUtil.initServer();
MailboxTestUtil.clearData();
Provisioning prov = Provisioning.getInstance();
Map<String, Object> attrs = Maps.newHashMap();
prov.createDomain("zimbra.com", attrs);
attrs = Maps.newHashMap();
attrs.put(Provisioning.A_zimbraId, UUID.randomUUID().toString());
prov.createAccount("test@zimbra.com", "secret", attrs);
attrs = Maps.newHashMap();
attrs.put(Provisioning.A_zimbraId, UUID.randomUUID().toString());
prov.createAccount("test2@zimbra.com", "secret", attrs);
// this MailboxManager does everything except actually send mail
MailboxManager.setInstance(new DirectInsertionMailboxManager());
}
use of com.zimbra.cs.service.mail.SendMsgTest.DirectInsertionMailboxManager in project zm-mailbox by Zimbra.
the class RedirectCopyTest method init.
@BeforeClass
public static void init() throws Exception {
MailboxTestUtil.initServer();
Provisioning prov = Provisioning.getInstance();
Map<String, Object> attrs = Maps.newHashMap();
prov.createDomain("zimbra.com", attrs);
attrs = Maps.newHashMap();
attrs.put(Provisioning.A_zimbraId, UUID.randomUUID().toString());
prov.createAccount("test1@zimbra.com", "secret", attrs);
attrs = Maps.newHashMap();
attrs.put(Provisioning.A_zimbraId, UUID.randomUUID().toString());
Account acct = prov.createAccount("test2@zimbra.com", "secret", attrs);
attrs = Maps.newHashMap();
attrs.put(Provisioning.A_zimbraId, UUID.randomUUID().toString());
prov.createAccount("test3@zimbra.com", "secret", attrs);
Server server = Provisioning.getInstance().getServer(acct);
// this MailboxManager does everything except actually send mail
MailboxManager.setInstance(new DirectInsertionMailboxManager());
}
use of com.zimbra.cs.service.mail.SendMsgTest.DirectInsertionMailboxManager in project zm-mailbox by Zimbra.
the class ReplyTest method init.
@BeforeClass
public static void init() throws Exception {
MailboxTestUtil.initServer();
MailboxTestUtil.clearData();
Provisioning prov = Provisioning.getInstance();
Map<String, Object> attrs = Maps.newHashMap();
prov.createDomain("zimbra.com", attrs);
attrs = Maps.newHashMap();
attrs.put(Provisioning.A_zimbraId, UUID.randomUUID().toString());
attrs.put(Provisioning.A_zimbraSieveNotifyActionRFCCompliant, "FALSE");
prov.createAccount("test@zimbra.com", "secret", attrs);
attrs = Maps.newHashMap();
attrs.put(Provisioning.A_zimbraId, UUID.randomUUID().toString());
attrs.put(Provisioning.A_zimbraSieveNotifyActionRFCCompliant, "FALSE");
prov.createAccount("test2@zimbra.com", "secret", attrs);
// this MailboxManager does everything except actually send mail
MailboxManager.setInstance(new DirectInsertionMailboxManager());
}
Aggregations