Package com.agiletec.plugins.jpnewsletter.aps.system.services.newsletter.parse

Examples of com.agiletec.plugins.jpnewsletter.aps.system.services.newsletter.parse.NewsletterConfigDOM.extractConfig()


 
  public void testUpdateConfig() throws Throwable {
    NewsletterConfigDOM newsletterConfigDOM = new NewsletterConfigDOM();
    NewsletterConfig config = this.createNewsletterConfig();
    String xml = newsletterConfigDOM.createConfigXml(config);
    NewsletterConfig updatedConfig = newsletterConfigDOM.extractConfig(xml);
    this.compareConfigs(config, updatedConfig);
  }
 
  @Override
    protected void init() throws Exception {
View Full Code Here


      String xml = configManager.getConfigItem(JpnewsletterSystemConstants.NEWSLETTER_CONFIG_ITEM);
      if (xml == null) {
        throw new ApsSystemException("Configuration item not present: " + JpnewsletterSystemConstants.NEWSLETTER_CONFIG_ITEM);
      }
      NewsletterConfigDOM configDOM = new NewsletterConfigDOM();
      this.setConfig(configDOM.extractConfig(xml));
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "loadConfigs");
      throw new ApsSystemException("Errore in fase di inizializzazione", 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.