use of org.camunda.bpm.engine.identity.UserQuery in project camunda-bpm-platform by camunda.
the class UserQueryTest method testQueryByInvalidLastNameLike.
public void testQueryByInvalidLastNameLike() {
UserQuery query = identityService.createUserQuery().userLastNameLike("%invalid%");
verifyQueryResults(query, 0);
try {
identityService.createUserQuery().userLastNameLike(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 testQueryByFirstNameLike.
public void testQueryByFirstNameLike() {
UserQuery query = identityService.createUserQuery().userFirstNameLike("%o%");
verifyQueryResults(query, 2);
query = identityService.createUserQuery().userFirstNameLike("Ker%");
verifyQueryResults(query, 1);
identityService.createUserQuery().userFirstNameLike("%mit\\_");
verifyQueryResults(query, 1);
}
use of org.camunda.bpm.engine.identity.UserQuery in project camunda-bpm-platform by camunda.
the class UserQueryTest method testQueryByLastNameLike.
public void testQueryByLastNameLike() {
UserQuery query = identityService.createUserQuery().userLastNameLike("%\\_frog%");
verifyQueryResults(query, 1);
query = identityService.createUserQuery().userLastNameLike("%ea%");
verifyQueryResults(query, 2);
}
use of org.camunda.bpm.engine.identity.UserQuery in project camunda-bpm-platform by camunda.
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 (ProcessEngineException e) {
}
}
use of org.camunda.bpm.engine.identity.UserQuery in project camunda-bpm-platform by camunda.
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 (ProcessEngineException e) {
}
}
Aggregations