use of org.apache.syncope.ext.scimv2.api.data.SCIMComplexValue in project syncope by apache.
the class SCIMITCase method getSampleUser.
private SCIMUser getSampleUser(final String username) {
SCIMUser user = new SCIMUser(null, Collections.singletonList(Resource.User.schema()), null, username, true);
user.setPassword("password123");
SCIMUserName name = new SCIMUserName();
name.setGivenName(username);
name.setFamilyName("surname");
name.setFormatted(username);
user.setName(name);
SCIMComplexValue userId = new SCIMComplexValue();
userId.setType(EmailCanonicalType.work.name());
userId.setValue(username + "@syncope.apache.org");
user.getEmails().add(userId);
SCIMComplexValue email = new SCIMComplexValue();
email.setType(EmailCanonicalType.home.name());
email.setValue(username + "@syncope.apache.org");
user.getEmails().add(email);
return user;
}
Aggregations