Search in sources :

Example 1 with Addgroup

use of org.apache.directory.fortress.core.ant.Addgroup in project directory-fortress-core by apache.

the class GroupAntTest method testReadGroups.

@Test
public void testReadGroups() {
    // gather role input data:
    List<Addgroup> addgroups = fortressAntTask.getAddgroups();
    for (Addgroup addgroup : addgroups) {
        List<Group> groups = addgroup.getGroups();
        readGroups("READ-GRPS", groups);
    }
}
Also used : Group(org.apache.directory.fortress.core.model.Group) Addgroup(org.apache.directory.fortress.core.ant.Addgroup) Test(org.junit.Test)

Example 2 with Addgroup

use of org.apache.directory.fortress.core.ant.Addgroup in project directory-fortress-core by apache.

the class GroupAntTest method testFindGroups.

@Test
public void testFindGroups() {
    // gather role input data:
    List<Addgroup> addgroups = fortressAntTask.getAddgroups();
    for (Addgroup addgroup : addgroups) {
        List<Group> groups = addgroup.getGroups();
        findGroups("FIND-GRPS", groups);
    }
}
Also used : Group(org.apache.directory.fortress.core.model.Group) Addgroup(org.apache.directory.fortress.core.ant.Addgroup) Test(org.junit.Test)

Aggregations

Addgroup (org.apache.directory.fortress.core.ant.Addgroup)2 Group (org.apache.directory.fortress.core.model.Group)2 Test (org.junit.Test)2