Ejemplo n.º 1
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();
  }
Ejemplo n.º 2
0
 @BeforeClass
 public static void init() throws Exception {
   MockProvisioning prov = new MockProvisioning();
   prov.createAccount("*****@*****.**", "secret", new HashMap<String, Object>());
   Provisioning.setInstance(prov);
 }
Ejemplo n.º 3
0
 @BeforeClass
 public static void init() throws Exception {
   MockProvisioning prov = new MockProvisioning();
   prov.getLocalServer().setSmtpPort(25);
   Provisioning.setInstance(prov);
 }