no need for input of postalAddresss.name anymore - now generated

This commit is contained in:
Michael Hoennig 2024-12-07 07:19:15 +01:00
parent b845671617
commit 886b621fce

View File

@ -25,7 +25,7 @@ public class ReplaceDeceasedPartnerWithCommunityOfHeirs extends UseCase<ReplaceD
"Even in production data we expect this query to return just a single result." // TODO.impl: add constraint?
);
obtain("Partner: deceased", () ->
obtain("Partner: %{partnerNumber}", () ->
httpGet("/api/hs/office/partners/%{partnerNumber}")
.expecting(OK).expecting(JSON),
response -> response.getFromBody("uuid"),
@ -49,6 +49,7 @@ public class ReplaceDeceasedPartnerWithCommunityOfHeirs extends UseCase<ReplaceD
{
"caption": "Erbengemeinschaft %{nameOfDeceasedPerson}",
"postalAddress": {
"name": "Erbengemeinschaft %{nameOfDeceasedPerson}",
%{communityOfHeirsPostalAddress}
},
"phoneNumbers": {