@BeforeClass public static void init() throws Exception { MailboxTestUtil.initServer(); Provisioning prov = Provisioning.getInstance(); prov.createAccount("*****@*****.**", "secret", new HashMap<String, Object>()); Provisioning.setInstance(prov); }
@BeforeClass public static void init() throws Exception { MockProvisioning prov = new MockProvisioning(); HashMap<String, Object> attrs = new HashMap<String, Object>(); attrs.put(Provisioning.A_zimbraId, accountId); attrs.put(Provisioning.A_zimbraMailHost, "localhost"); testAccount = prov.createAccount("*****@*****.**", "secret", attrs); Provisioning.setInstance(prov); LC.zimbra_tmp_directory.setDefault("build/test"); servlet = new FileUploadServlet(); }
@BeforeClass public static void init() throws Exception { MockProvisioning prov = new MockProvisioning(); prov.createAccount("*****@*****.**", "secret", new HashMap<String, Object>()); Provisioning.setInstance(prov); }
@BeforeClass public static void init() throws Exception { MockProvisioning prov = new MockProvisioning(); prov.getLocalServer().setSmtpPort(25); Provisioning.setInstance(prov); }