Package com.agiletec.plugins.jpwebmail.aps.system.services.webmail.parse

Examples of com.agiletec.plugins.jpwebmail.aps.system.services.webmail.parse.WebMailConfigDOM.extractConfig()


public class TestWebMailConfigDOM extends ApsPluginBaseTestCase {
 
  public void testGetItems() throws ApsSystemException {
    WebMailConfigDOM configDOM = new WebMailConfigDOM();
    WebMailConfig bean = configDOM.extractConfig(XML);
    assertEquals("smtpUsername", bean.getSmtpUserName());
    assertEquals("SMTP.EMAIL.COM", bean.getSmtpHost());
    assertEquals("smtpPassword", bean.getSmtpPassword());
    assertEquals("/cert/path/", bean.getCertificatePath());
    assertTrue(bean.isCertificateLazyCheck());
View Full Code Here


      String xml = this.getConfigManager().getConfigItem(JpwebmailSystemConstants.WEBMAIL_CONFIG_ITEM);
      if (xml == null) {
        throw new ApsSystemException("Missing confi item: " + JpwebmailSystemConstants.WEBMAIL_CONFIG_ITEM);
      }
      WebMailConfigDOM contactConfigDom = new WebMailConfigDOM();
      this.setConfig(contactConfigDom.extractConfig(xml));
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "loadConfigs");
      throw new ApsSystemException("Error loading config", t);
    }
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.