Package com.agiletec.plugins.jpwebdynamicform.aps.system.services.message.parse

Examples of com.agiletec.plugins.jpwebdynamicform.aps.system.services.message.parse.MessageNotifierConfigDOM.extractConfig()


  public void testExtractCreateConfig() throws Throwable {
    ConfigInterface configManager = (ConfigInterface) this.getService(SystemConstants.BASE_CONFIG_MANAGER);
    String xml = configManager.getConfigItem(JpwebdynamicformSystemConstants.MESSAGE_NOTIFIER_CONFIG_ITEM);
   
    MessageNotifierConfigDOM configDOM = new MessageNotifierConfigDOM();
    Map<String, MessageTypeNotifierConfig> config = configDOM.extractConfig(xml);
    this.checkOriginaryConfig(config);
   
    String newXml = configDOM.createConfigXml(config);
    Map<String, MessageTypeNotifierConfig> newConfig = configDOM.extractConfig(newXml);
    this.checkOriginaryConfig(newConfig);
View Full Code Here


    MessageNotifierConfigDOM configDOM = new MessageNotifierConfigDOM();
    Map<String, MessageTypeNotifierConfig> config = configDOM.extractConfig(xml);
    this.checkOriginaryConfig(config);
   
    String newXml = configDOM.createConfigXml(config);
    Map<String, MessageTypeNotifierConfig> newConfig = configDOM.extractConfig(newXml);
    this.checkOriginaryConfig(newConfig);
  }
 
  private void checkOriginaryConfig(Map<String, MessageTypeNotifierConfig> config) {
    assertEquals(2, config.size());
View Full Code Here

      String xml = configManager.getConfigItem(JpwebdynamicformSystemConstants.MESSAGE_NOTIFIER_CONFIG_ITEM);
      if (xml == null) {
        throw new ApsSystemException("Configuration item not present: " + JpwebdynamicformSystemConstants.MESSAGE_NOTIFIER_CONFIG_ITEM);
      }
      MessageNotifierConfigDOM configDOM = new MessageNotifierConfigDOM();
      this.setNotifierConfigMap(configDOM.extractConfig(xml));
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "loadNotifierConfig");
      throw new ApsSystemException("Error initializing the configuration", 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.