From 552146a98c51606a32c0fb80a72e80c33207bb58 Mon Sep 17 00:00:00 2001 From: Michael Hoennig Date: Mon, 8 Apr 2024 10:22:10 +0200 Subject: [PATCH] add title+salutation to EntityPatcherUnitTest --- .../HsOfficePersonEntityPatcherUnitTest.java | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/test/java/net/hostsharing/hsadminng/hs/office/person/HsOfficePersonEntityPatcherUnitTest.java b/src/test/java/net/hostsharing/hsadminng/hs/office/person/HsOfficePersonEntityPatcherUnitTest.java index 7fdb0a27..d1dced4d 100644 --- a/src/test/java/net/hostsharing/hsadminng/hs/office/person/HsOfficePersonEntityPatcherUnitTest.java +++ b/src/test/java/net/hostsharing/hsadminng/hs/office/person/HsOfficePersonEntityPatcherUnitTest.java @@ -23,7 +23,9 @@ class HsOfficePersonEntityPatcherUnitTest extends PatchUnitTestBase< final var entity = new HsOfficePersonEntity(); entity.setUuid(INITIAL_PERSON_UUID); entity.setPersonType(HsOfficePersonType.LEGAL_PERSON); - entity.setTradeName("initial@example.org"); + entity.setTradeName("initial trade name"); + entity.setTitle("Dr. Init."); + entity.setSalutation("Herr Initial"); entity.setFamilyName("initial postal address"); entity.setGivenName("+01 100 123456789"); return entity; @@ -54,6 +56,16 @@ class HsOfficePersonEntityPatcherUnitTest extends PatchUnitTestBase< HsOfficePersonPatchResource::setTradeName, "patched trade name", HsOfficePersonEntity::setTradeName), + new JsonNullableProperty<>( + "title", + HsOfficePersonPatchResource::setTitle, + "Dr. Patch.", + HsOfficePersonEntity::setTitle), + new JsonNullableProperty<>( + "salutation", + HsOfficePersonPatchResource::setSalutation, + "Hallo Ini", + HsOfficePersonEntity::setSalutation), new JsonNullableProperty<>( "familyName", HsOfficePersonPatchResource::setFamilyName,