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