use of org.activiti.engine.identity.UserQuery in project Activiti by Activiti.
the class UserQueryTest method testQueryByEmailLike.
public void testQueryByEmailLike() {
UserQuery query = identityService.createUserQuery().userEmailLike("%muppetshow.com");
verifyQueryResults(query, 3);
query = identityService.createUserQuery().userEmailLike("%kermit%");
verifyQueryResults(query, 1);
}
use of org.activiti.engine.identity.UserQuery in project Activiti by Activiti.
the class UserQueryTest method testQueryByLastNameLike.
public void testQueryByLastNameLike() {
UserQuery query = identityService.createUserQuery().userLastNameLike("%rog%");
verifyQueryResults(query, 1);
query = identityService.createUserQuery().userLastNameLike("%ea%");
verifyQueryResults(query, 2);
}
use of org.activiti.engine.identity.UserQuery in project Activiti by Activiti.
the class UserQueryTest method testQueryByInvalidId.
public void testQueryByInvalidId() {
UserQuery query = identityService.createUserQuery().userId("invalid");
verifyQueryResults(query, 0);
try {
identityService.createUserQuery().userId(null).singleResult();
fail();
} catch (ActivitiIllegalArgumentException e) {
}
}
use of org.activiti.engine.identity.UserQuery in project Activiti by Activiti.
the class UserQueryTest method testQueryByLastName.
public void testQueryByLastName() {
UserQuery query = identityService.createUserQuery().userLastName("Bear");
verifyQueryResults(query, 1);
User result = query.singleResult();
assertEquals("fozzie", result.getId());
}
use of org.activiti.engine.identity.UserQuery in project Activiti by Activiti.
the class UserQueryTest method testQueryByEmail.
public void testQueryByEmail() {
UserQuery query = identityService.createUserQuery().userEmail("kermit@muppetshow.com");
verifyQueryResults(query, 1);
}
Aggregations