use of org.activiti.engine.identity.UserQuery in project Activiti by Activiti.
the class UserQueryTest method testQueryByInvalidEmailLike.
public void testQueryByInvalidEmailLike() {
UserQuery query = identityService.createUserQuery().userEmailLike("%invalid%");
verifyQueryResults(query, 0);
try {
identityService.createUserQuery().userEmailLike(null).singleResult();
fail();
} catch (ActivitiIllegalArgumentException e) {
}
}
use of org.activiti.engine.identity.UserQuery in project Activiti by Activiti.
the class UserQueryTest method testQueryByInvalidFirstNameLike.
public void testQueryByInvalidFirstNameLike() {
UserQuery query = identityService.createUserQuery().userFirstNameLike("%mispiggy%");
verifyQueryResults(query, 0);
try {
identityService.createUserQuery().userFirstNameLike(null).singleResult();
fail();
} catch (ActivitiIllegalArgumentException e) {
}
}
use of org.activiti.engine.identity.UserQuery in project Activiti by Activiti.
the class UserQueryTest method testQueryByMemberOf.
public void testQueryByMemberOf() {
UserQuery query = identityService.createUserQuery().memberOfGroup("muppets");
verifyQueryResults(query, 3);
query = identityService.createUserQuery().memberOfGroup("frogs");
verifyQueryResults(query, 1);
User result = query.singleResult();
assertEquals("kermit", result.getId());
}
use of org.activiti.engine.identity.UserQuery in project Activiti by Activiti.
the class UserQueryTest method testQueryByInvalidMemberOf.
public void testQueryByInvalidMemberOf() {
UserQuery query = identityService.createUserQuery().memberOfGroup("invalid");
verifyQueryResults(query, 0);
try {
identityService.createUserQuery().memberOfGroup(null).list();
fail();
} catch (ActivitiIllegalArgumentException e) {
}
}
use of org.activiti.engine.identity.UserQuery in project Activiti by Activiti.
the class UserQueryTest method testQueryByInvalidFirstName.
public void testQueryByInvalidFirstName() {
UserQuery query = identityService.createUserQuery().userFirstName("invalid");
verifyQueryResults(query, 0);
try {
identityService.createUserQuery().userFirstName(null).singleResult();
fail();
} catch (ActivitiIllegalArgumentException e) {
}
}
Aggregations