Package com.ideo.jso.conf

Examples of com.ideo.jso.conf.Group


     
      assertNotNull("Group " + name + " constains sub-groups declaration.", group.getSubgroups());
     
      for (int i = 0; i < subgroups.length; i++) {
        assertTrue("Group " + name + "'s sub-groups list contains at least " +  i + " element(s).", iterator.hasNext());
        Group subgroup = (Group) iterator.next();
        assertEquals("Group " + name + "'s sub-groups list contains file " + subgroup.getName() +" at position " + i + ".",
              subgroups[i], subgroup.getName() );
      }
     
    }
   
   
View Full Code Here


    checkConfigFileName("com/ideo/jso/junit/minimize/jso1.xml", 1, properties);
   
    Map groups = AbstractConfigurationLoader.getInstance().getUpdatedGroups();
   
    Group group = (Group) groups.get("group1");
   
    // test if file is correctly merged
    checkMergedJSFiles(group, "group1_merged.txt", "ISO-8859-1");
    // 2nd call without reseting group last load time should return empty file.
    checkMergedJSFilesAreEmpty(group, "ISO-8859-1");
   
    // 3rd call after reseting group last load time should return merged file.
    group.setLastLoadTime(0);
    checkMergedJSFiles(group, "group1_merged.txt", "ISO-8859-1");
   
  }
View Full Code Here

    checkConfigFileName("com/ideo/jso/junit/minimize/jso1.xml", 1, properties);
   
    Map groups = AbstractConfigurationLoader.getInstance().getUpdatedGroups();
   
    Group group = (Group) groups.get("group3");
   
    // test if file is correctly merged
    checkMergedJSFiles(group, "group3_merged.txt", "ISO-8859-1");
    // 2nd call without reseting group last load time should return empty file.
    checkMergedJSFilesAreEmpty(group, "ISO-8859-1");
   
    // 3rd call after reseting group last load time should return merged file.
    group.setLastLoadTime(0);
    checkMergedJSFiles(group, "group3_merged.txt", "ISO-8859-1");
   
    group = (Group) groups.get("group4");
   
    // test if file is correctly merged
    checkMergedJSFiles(group, "group4_merged.txt", "ISO-8859-1");
    // 2nd call without reseting group last load time should return empty file.
    checkMergedJSFilesAreEmpty(group, "ISO-8859-1");
   
    // 3rd call after reseting group last load time should return merged file.
    group.setLastLoadTime(0);
    checkMergedJSFiles(group, "group4_merged.txt", "ISO-8859-1");
  }
View Full Code Here

    checkConfigFileName("com/ideo/jso/junit/minimize/jso2.xml", 1, properties);
   
    Map groups = AbstractConfigurationLoader.getInstance().getUpdatedGroups();
   
    Group group = (Group) groups.get("group3");
   
    URLConf.setMockWebUrl("http://mocksite/MockContext/");
   
    // test if file is correctly merged
    checkMergedJSFiles(group, "group3_merged.txt", "ISO-8859-1");
    // 2nd call without reseting group last load time should return empty file.
    checkMergedJSFilesAreEmpty(group, "ISO-8859-1");
   
    // 3rd call after reseting group last load time should return merged file.
    group.setLastLoadTime(0);
    checkMergedJSFiles(group, "group3_merged.txt", "ISO-8859-1");
  }
View Full Code Here

TOP

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

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.