fix putEmailAdresses -> putEmailAddresses
This commit is contained in:
parent
90c21e7ec1
commit
fed712bf02
@ -120,7 +120,7 @@ public class HsOfficeContactController implements HsOfficeContactsApi {
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
final BiConsumer<HsOfficeContactInsertResource, HsOfficeContactEntity> RESOURCE_TO_ENTITY_POSTMAPPER = (resource, entity) -> {
|
||||
entity.putEmailAdresses(from(resource.getEmailAddresses()));
|
||||
entity.putEmailAddresses(from(resource.getEmailAddresses()));
|
||||
entity.putPhoneNumbers(from(resource.getPhoneNumbers()));
|
||||
};
|
||||
}
|
||||
|
@ -77,7 +77,7 @@ public class HsOfficeContactEntity implements Stringifyable, RbacObject {
|
||||
return PatchableMapWrapper.of(emailAddressesWrapper, (newWrapper) -> {emailAddressesWrapper = newWrapper; }, emailAddresses );
|
||||
}
|
||||
|
||||
public void putEmailAdresses(Map<String, String> newEmailAddresses) {
|
||||
public void putEmailAddresses(Map<String, String> newEmailAddresses) {
|
||||
getEmailAddresses().assign(newEmailAddresses);
|
||||
}
|
||||
|
||||
|
@ -46,7 +46,7 @@ class HsOfficeContactEntityPatcherUnitTest extends PatchUnitTestBase<
|
||||
final var entity = new HsOfficeContactEntity();
|
||||
entity.setUuid(INITIAL_CONTACT_UUID);
|
||||
entity.setLabel("initial label");
|
||||
entity.putEmailAdresses(Map.ofEntries(
|
||||
entity.putEmailAddresses(Map.ofEntries(
|
||||
entry("main", "initial@example.org"),
|
||||
entry("paul", "paul@example.com"),
|
||||
entry("mila", "mila@example.com")));
|
||||
@ -80,7 +80,7 @@ class HsOfficeContactEntityPatcherUnitTest extends PatchUnitTestBase<
|
||||
"resources",
|
||||
HsOfficeContactPatchResource::setEmailAddresses,
|
||||
PATCH_EMAIL_ADDRESSES,
|
||||
HsOfficeContactEntity::putEmailAdresses,
|
||||
HsOfficeContactEntity::putEmailAddresses,
|
||||
PATCHED_EMAIL_ADDRESSES)
|
||||
.notNullable(),
|
||||
new SimpleProperty<>(
|
||||
|
@ -1092,7 +1092,7 @@ public class ImportOfficeData extends ContextBasedTest {
|
||||
contactRecord.getString("first_name"),
|
||||
contactRecord.getString("last_name"),
|
||||
contactRecord.getString("firma")));
|
||||
contact.putEmailAdresses( Map.of("main", contactRecord.getString("email")));
|
||||
contact.putEmailAddresses( Map.of("main", contactRecord.getString("email")));
|
||||
contact.setPostalAddress(toAddress(contactRecord));
|
||||
contact.putPhoneNumbers(toPhoneNumbers(contactRecord));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user