@BeforeClass
 public static void init() throws Exception {
   MailboxTestUtil.initServer();
   Provisioning prov = Provisioning.getInstance();
   prov.createAccount("*****@*****.**", "secret", new HashMap<String, Object>());
   Provisioning.setInstance(prov);
 }
示例#2
0
  @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();
  }
示例#3
0
 @BeforeClass
 public static void init() throws Exception {
   MockProvisioning prov = new MockProvisioning();
   prov.createAccount("*****@*****.**", "secret", new HashMap<String, Object>());
   Provisioning.setInstance(prov);
 }
示例#4
0
 @BeforeClass
 public static void init() throws Exception {
   MockProvisioning prov = new MockProvisioning();
   prov.getLocalServer().setSmtpPort(25);
   Provisioning.setInstance(prov);
 }