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"});
checkCssFilesList(group1, new String[] {"GROUP1_FILECSS1","GROUP1_FILECSS2"});
checkGroupLocation(group1, null);
// test on group2.
Group group2 = (Group) groups.get("group2");
checkSubGroupList(group2, null);
checkJsFilesList(group2, new String[] {"GROUP1_FILEJS1","GROUP1_FILEJS2"});
checkCssFilesList(group2, new String[] {"GROUP1_FILECSS1"});
checkGroupLocation(group2, "location_of_group2");
// test on group3.
Group group3 = (Group) groups.get("group3");
// checkSubGroupList(group3, new String[] {"group2","group1"}); // see testSeveralXmlAppendGroup3SubGroups
checkJsFilesList(group3, new String[] {"GROUP3_FILEJS1","GROUP3_FILEJS2"});
checkCssFilesList(group3, new String[] {"GROUP3_FILECSS1","GROUP3_FILECSS2"});
checkGroupLocation(group3, "location_of_group3");
// test on group4.
Group group4 = (Group) groups.get("group4");
checkSubGroupList(group4, new String[] {"group5"});
checkJsFilesList(group4, null);
checkCssFilesList(group4, new String[] {"GROUP4_FILECSS1"});
// checkGroupLocation(group4, "location_of_group4"); // see testSeveralXmlAppendGroup4location
// test on group5.
Group group5 = (Group) groups.get("group5");
checkSubGroupList(group5, null);
checkJsFilesList(group5, new String[] {"GROUP5_FILEJS1","GROUP5_FILEJS2"});
checkCssFilesList(group5, null);
checkGroupLocation(group5, "location_of_group5");