import com.ideo.jso.junit.Util;
public class TestGroup extends JSOUnit {
public void testBasicTest() {
Group group1 = new Group("testGroup1");
Group group2 = new Group("testGroup2");
Group group3 = new Group("testGroup3");
Group group4 = new Group("testGroup4");
group2.getJsNames().add("group2.js1");
group3.getJsNames().add("group3.js1");
group4.getJsNames().add("group4.js1");
group4.getJsNames().add("group4.js2");
group1.getCssNames().add("group1.css1");
group3.getCssNames().add("group3.css1");
group3.getCssNames().add("group3.css2");
group4.getCssNames().add("group4.css1");
group1.getSubgroups().add(group2);
group2.getSubgroups().add(group3);
group2.getSubgroups().add(group4);
assertEquals("Nom de group OK", "testGroup1", group1.getName());
assertEquals("Nom de group OK", "testGroup2", group2.getName());
assertEquals("Nom de group OK", "testGroup3", group3.getName());
assertEquals("Nom de group OK", "testGroup4", group4.getName());
checkSubGroupList(group1, new String[] {"testGroup2"});
checkSubGroupList(group2, new String[] {"testGroup3","testGroup4"});
checkJsFilesList(group1, null);