Search in sources :

Example 11 with GroupQuery

use of org.activiti.engine.identity.GroupQuery in project Activiti by Activiti.

the class GroupQueryTest method testQueryByInvalidType.

public void testQueryByInvalidType() {
    GroupQuery query = identityService.createGroupQuery().groupType("invalid");
    verifyQueryResults(query, 0);
    try {
        identityService.createGroupQuery().groupType(null).list();
        fail();
    } catch (ActivitiIllegalArgumentException e) {
    }
}
Also used : ActivitiIllegalArgumentException(org.activiti.engine.ActivitiIllegalArgumentException) GroupQuery(org.activiti.engine.identity.GroupQuery)

Example 12 with GroupQuery

use of org.activiti.engine.identity.GroupQuery in project Activiti by Activiti.

the class GroupQueryTest method testQueryByInvalidMember.

public void testQueryByInvalidMember() {
    GroupQuery query = identityService.createGroupQuery().groupMember("invalid");
    verifyQueryResults(query, 0);
    try {
        identityService.createGroupQuery().groupMember(null).list();
        fail();
    } catch (ActivitiIllegalArgumentException e) {
    }
}
Also used : ActivitiIllegalArgumentException(org.activiti.engine.ActivitiIllegalArgumentException) GroupQuery(org.activiti.engine.identity.GroupQuery)

Aggregations

GroupQuery (org.activiti.engine.identity.GroupQuery)12 ActivitiIllegalArgumentException (org.activiti.engine.ActivitiIllegalArgumentException)5 Group (org.activiti.engine.identity.Group)2