use of org.camunda.bpm.engine.identity.UserQuery in project camunda-bpm-platform by camunda.
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 (ProcessEngineException e) {
}
}
use of org.camunda.bpm.engine.identity.UserQuery in project camunda-bpm-platform by camunda.
the class UserQueryTest method testQueryByInvalidEmail.
public void testQueryByInvalidEmail() {
UserQuery query = identityService.createUserQuery().userEmail("invalid");
verifyQueryResults(query, 0);
try {
identityService.createUserQuery().userEmail(null).singleResult();
fail();
} catch (ProcessEngineException e) {
}
}
use of org.camunda.bpm.engine.identity.UserQuery in project camunda-bpm-platform by camunda.
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.camunda.bpm.engine.identity.UserQuery in project camunda-bpm-platform by camunda.
the class UserQueryTest method testQueryByEmail.
public void testQueryByEmail() {
UserQuery query = identityService.createUserQuery().userEmail("kermit_@muppetshow.com");
verifyQueryResults(query, 1);
}
use of org.camunda.bpm.engine.identity.UserQuery in project camunda-bpm-platform by camunda.
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);
}
Aggregations