Package com.ideo.jso.conf

Examples of com.ideo.jso.conf.AbstractConfigurationLoader


    OutputStream out = null;
    try {
      file.createNewFile();
      out = new FileOutputStream(file);
   
      AbstractConfigurationLoader confLoader = AbstractConfigurationLoader.getInstance();
      AbstractGroupBuilder groupBuilder = AbstractGroupBuilder.getInstance();
      Map mapGroups = confLoader.getGroups();
      List alreadyIncludedResources = new ArrayList();
     
      for(int i=0;i<groups.length;++i){
        Group group = (Group) mapGroups.get(groups[i]);
       
View Full Code Here


   
    Properties properties = initJSO(jsoPropertiesFile);

    checkConfigFileName("com/ideo/jso/junit/confLoad/jso2.xml", 1, properties);
   
    AbstractConfigurationLoader loader = AbstractConfigurationLoader.getInstance();
    Map groups = loader.getUpdatedGroups();
       
    // Are groups created ?
    testGroupPresents(groups, "group1");
    checkGroupLocation((Group) groups.get("group1"), null);
    testGroupPresents(groups, "group2");
View Full Code Here

   
    Properties properties = initJSO(jsoPropertiesFile);

    checkConfigFileName("com/ideo/jso/junit/confLoad/jso4.xml", 1, properties);
   
    AbstractConfigurationLoader loader = AbstractConfigurationLoader.getInstance();
    loader.getUpdatedGroups();
 
    assertEquals("Default location is OK", "default_location", loader.getDefaultLocation());
    assertEquals("Default location is OK", "local", loader.getDefaultTimestampPolicy());
  }
View Full Code Here

   
    Properties properties = initJSO(jsoPropertiesFile);

    checkConfigFileName("com/ideo/jso/junit/confLoad/jso50.xml", 3, properties);
   
    AbstractConfigurationLoader loader = AbstractConfigurationLoader.getInstance();
    Map groups = loader.getUpdatedGroups();
   
    // Groups configuration should merge
    // in case of conflict the lastest jso xml file readen as the advantage
    // order :
    // - jso-optimizer-junit-conf2
View Full Code Here

   
    Properties properties = initJSO(jsoPropertiesFile);

    checkConfigFileName("com/ideo/jso/junit/confLoad/jso51.xml", 3, properties);
   
    AbstractConfigurationLoader loader = AbstractConfigurationLoader.getInstance();
    Map groups = loader.getUpdatedGroups();
   
    // test on group 1
    Group group1 = (Group) groups.get("group1");
    checkSubGroupList(group1, new String[] {"group4","group5"});
    checkJsFilesList(group1, new String[] {"GROUP1_FILEJS1","GROUP1_FILEJS2","GROUP1_FILEJS3"});
View Full Code Here

   
    Properties properties = initJSO(jsoPropertiesFile);

    checkConfigFileName("com/ideo/jso/junit/confLoad/jso51.xml", 3, properties);
   
    AbstractConfigurationLoader loader = AbstractConfigurationLoader.getInstance();
    Map groups = loader.getUpdatedGroups();
   
    // test on group3.
    Group group3 = (Group) groups.get("group3");
   
    // !! Probleme redondance des groupes - a faire evoluer
View Full Code Here

   
    Properties properties = initJSO(jsoPropertiesFile);

    checkConfigFileName("com/ideo/jso/junit/confLoad/jso51.xml", 3, properties);
   
    AbstractConfigurationLoader loader = AbstractConfigurationLoader.getInstance();
    Map groups = loader.getUpdatedGroups();
   
   
    // test on group4.
    Group group4 = (Group) groups.get("group4");
     
View Full Code Here

   
    Properties properties = initJSO(jsoPropertiesFile);

    checkConfigFileName("com/ideo/jso/junit/confLoad/jso52.xml", 3, properties);
   
    AbstractConfigurationLoader loader = AbstractConfigurationLoader.getInstance();
    Map groups = loader.getUpdatedGroups();
   
    Group group1 = (Group) groups.get("group1");
    checkSubGroupList(group1, new String[] {"group4"});
    checkGroupLocation(group1, null);
   
View Full Code Here

   
    Properties properties = initJSO(jsoPropertiesFile);

    checkConfigFileName("com/ideo/jso/junit/confLoad/jso52.xml", 3, properties);
   
    AbstractConfigurationLoader loader = AbstractConfigurationLoader.getInstance();
    Map groups = loader.getUpdatedGroups();
   
   
    Group group1 = (Group) groups.get("group1");
    checkJsFilesList(group1, new String[] {"GROUP1_FILEJS3"});
    checkCssFilesList(group1, null);
View Full Code Here

   
    Properties properties = initJSO(jsoPropertiesFile);

    checkConfigFileName("com/ideo/jso/junit/confLoad/jso53.xml", 3, properties);
   
    AbstractConfigurationLoader loader = AbstractConfigurationLoader.getInstance();
    Map groups = loader.getUpdatedGroups();
   
    Group group1 = (Group) groups.get("group1");
    checkGroupLocation(group1, "location1_of_group1");
    checkJsFilesList(group1, new String[]{"GROUP1_FILEJS3","GROUP1_FILEJS1"});
   
View Full Code Here

TOP

Related Classes of com.ideo.jso.conf.AbstractConfigurationLoader

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.