@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); }