Package com.agiletec.plugins.jpmail.aps.services.mail

Examples of com.agiletec.plugins.jpmail.aps.services.mail.MailConfig


  public void testSaveSenderSuccessful() throws Throwable {
    String currentUser = "admin";
    try {
      String result = this.executeSaveSender(currentUser, "CODE1", "\"Indirizzo di Prova\" <mail@addresstest.it>", ApsAdminSystemConstants.EDIT);
      assertEquals(Action.SUCCESS, result);
      MailConfig config = this._mailManager.getMailConfig();
      assertNotNull(config.getSender("CODE1"));
      assertEquals("\"Indirizzo di Prova\" <mail@addresstest.it>", config.getSender("CODE1"));
    } catch (Throwable t) {
      throw t;
    } finally {
      this._helper.resetConfig();
    }
View Full Code Here


    this.setUserOnSession("admin");
    this.initAction("/do/jpmail/MailConfig", "trashSender");
    this.addParameter("code", "CODE1");
    String result = this.executeAction();
    assertEquals(Action.SUCCESS, result);
    MailConfig config = this._mailManager.getMailConfig();
    assertNotNull(config.getSender("CODE1"));
    assertNotNull(config.getSender("CODE2"));
  }
View Full Code Here

      this.setUserOnSession("admin");
      this.initAction("/do/jpmail/MailConfig", "deleteSender");
      this.addParameter("code", "CODE1");
      String result = this.executeAction();
      assertEquals(Action.SUCCESS, result);
      MailConfig config = this._mailManager.getMailConfig();
      assertNull(config.getSender("CODE1"));
      assertNotNull(config.getSender("CODE2"));
    } catch (Throwable t) {
      throw t;
    } finally {
      this._helper.resetConfig();
    }
View Full Code Here

TOP

Related Classes of com.agiletec.plugins.jpmail.aps.services.mail.MailConfig

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.