use of com.zimbra.cs.service.mail.SendMsgTest.DirectInsertionMailboxManager in project zm-mailbox by Zimbra.
the class NotifyMailtoTest method init.
@BeforeClass
public static void init() throws Exception {
MailboxTestUtil.initServer();
MailboxTestUtil.clearData();
MockProvisioning prov = new MockProvisioning();
Provisioning.setInstance(prov);
Map<String, Object> attrs = Maps.newHashMap();
attrs = Maps.newHashMap();
prov.createDomain("zimbra.com", attrs);
attrs = Maps.newHashMap();
attrs.put(Provisioning.A_zimbraId, UUID.randomUUID().toString());
attrs.put(Provisioning.A_zimbraSieveNotifyActionRFCCompliant, "TRUE");
Account account = prov.createAccount("test1@zimbra.com", "secret", attrs);
attrs = Maps.newHashMap();
attrs.put(Provisioning.A_zimbraId, UUID.randomUUID().toString());
attrs.put(Provisioning.A_zimbraSieveNotifyActionRFCCompliant, "TRUE");
prov.createAccount("test2@zimbra.com", "secret", attrs);
attrs = Maps.newHashMap();
attrs.put(Provisioning.A_zimbraId, UUID.randomUUID().toString());
attrs.put(Provisioning.A_zimbraSieveNotifyActionRFCCompliant, "TRUE");
prov.createAccount("\"tes\\\\t2\"@zimbra.com", "secret", attrs);
attrs = Maps.newHashMap();
attrs.put(Provisioning.A_zimbraId, UUID.randomUUID().toString());
attrs.put(Provisioning.A_zimbraSieveNotifyActionRFCCompliant, "TRUE");
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 EscapeSequencesTest method init.
@BeforeClass
public static void init() throws Exception {
MailboxTestUtil.initServer();
MailboxTestUtil.clearData();
MockProvisioning prov = new MockProvisioning();
Provisioning.setInstance(prov);
Map<String, Object> attrs = Maps.newHashMap();
attrs = Maps.newHashMap();
prov.createDomain("zimbra.com", attrs);
attrs = Maps.newHashMap();
attrs.put(Provisioning.A_zimbraId, UUID.randomUUID().toString());
attrs.put(Provisioning.A_zimbraSieveNotifyActionRFCCompliant, "TRUE");
Account account = prov.createAccount("test1@zimbra.com", "secret", attrs);
attrs = Maps.newHashMap();
attrs.put(Provisioning.A_zimbraId, UUID.randomUUID().toString());
attrs.put(Provisioning.A_zimbraSieveNotifyActionRFCCompliant, "TRUE");
prov.createAccount("test2@zimbra.com", "secret", attrs);
attrs = Maps.newHashMap();
attrs.put(Provisioning.A_zimbraId, UUID.randomUUID().toString());
attrs.put(Provisioning.A_zimbraSieveNotifyActionRFCCompliant, "TRUE");
prov.createAccount("test3@zimbra.com", "secret", attrs);
// this MailboxManager does everything except actually send mail
MailboxManager.setInstance(new DirectInsertionMailboxManager());
}
Aggregations