Search in sources :

Example 16 with MockProvisioning

use of com.zimbra.cs.account.MockProvisioning in project zm-mailbox by Zimbra.

the class DateQueryTest method init.

@BeforeClass
public static void init() throws Exception {
    MailboxTestUtil.initServer();
    MockProvisioning prov = new MockProvisioning();
    prov.createAccount("zero@zimbra.com", "secret", new HashMap<String, Object>());
    Provisioning.setInstance(prov);
}
Also used : MockProvisioning(com.zimbra.cs.account.MockProvisioning) BeforeClass(org.junit.BeforeClass)

Aggregations

MockProvisioning (com.zimbra.cs.account.MockProvisioning)16 BeforeClass (org.junit.BeforeClass)14 DirectInsertionMailboxManager (com.zimbra.cs.service.mail.SendMsgTest.DirectInsertionMailboxManager)2 Account (com.zimbra.cs.account.Account)1 Config (com.zimbra.cs.account.Config)1 Provisioning (com.zimbra.cs.account.Provisioning)1 HSQLDB (com.zimbra.cs.db.HSQLDB)1 TextEnrichedHandler (com.zimbra.cs.mime.handler.TextEnrichedHandler)1 TextHtmlHandler (com.zimbra.cs.mime.handler.TextHtmlHandler)1 UnknownTypeHandler (com.zimbra.cs.mime.handler.UnknownTypeHandler)1 File (java.io.File)1 FileNotFoundException (java.io.FileNotFoundException)1 HashMap (java.util.HashMap)1 Before (org.junit.Before)1