throws Exception
{
String userId = "test-user-with-empty-role";
UserManager userManager = this.getUserManager();
User user = userManager.getUser(userId);
String value = "value";
user.setEmailAddress(String.format("%s@%s", value, value));
user.setFirstName(value);
user.setLastName(value);
userManager.updateUser(user);
Configuration securityModel = this.getSecurityConfiguration();
boolean found = false;
for (CUser tmpUser : securityModel.getUsers()) {
if (userId.equals(tmpUser.getId())) {
assertEquals(String.format("%s@%s", value, value), user.getEmailAddress());
assertEquals(value, user.getFirstName());
assertEquals(value, user.getLastName());
found = true;
}
}
assertTrue("user not found", found);