From 15900d83e4f6c64925a3367f108fc6b6856e2856 Mon Sep 17 00:00:00 2001 From: Michael Hoennig Date: Wed, 11 Dec 2024 10:59:43 +0100 Subject: [PATCH] TODOs in ReplaceDeceasedPartnerWithCommunityOfHeirs --- .../scenarios/HsOfficeScenarioTests.java | 1 + ...ceDeceasedPartnerWithCommunityOfHeirs.java | 30 ++++++++++++++++++- 2 files changed, 30 insertions(+), 1 deletion(-) diff --git a/src/test/java/net/hostsharing/hsadminng/hs/office/scenarios/HsOfficeScenarioTests.java b/src/test/java/net/hostsharing/hsadminng/hs/office/scenarios/HsOfficeScenarioTests.java index ff7c261c..7f797c14 100644 --- a/src/test/java/net/hostsharing/hsadminng/hs/office/scenarios/HsOfficeScenarioTests.java +++ b/src/test/java/net/hostsharing/hsadminng/hs/office/scenarios/HsOfficeScenarioTests.java @@ -604,6 +604,7 @@ class HsOfficeScenarioTests extends ScenarioTest { new ReplaceDeceasedPartnerWithCommunityOfHeirs(scenarioTest) .given("partnerNumber", "P-31011") .given("nameOfDeceasedPerson", "Michelle Matthieu") // FIXME: redundant + .given("dateOfDeath", "2024-11-15") .given( // "name": "Erbengemeinschaft Michelle Matthieu", // FIXME: automatic? "communityOfHeirsPostalAddress", """ diff --git a/src/test/java/net/hostsharing/hsadminng/hs/office/scenarios/partner/ReplaceDeceasedPartnerWithCommunityOfHeirs.java b/src/test/java/net/hostsharing/hsadminng/hs/office/scenarios/partner/ReplaceDeceasedPartnerWithCommunityOfHeirs.java index 92ff7924..a59da0d4 100644 --- a/src/test/java/net/hostsharing/hsadminng/hs/office/scenarios/partner/ReplaceDeceasedPartnerWithCommunityOfHeirs.java +++ b/src/test/java/net/hostsharing/hsadminng/hs/office/scenarios/partner/ReplaceDeceasedPartnerWithCommunityOfHeirs.java @@ -63,6 +63,11 @@ public class ReplaceDeceasedPartnerWithCommunityOfHeirs extends UseCase httpPost("/api/hs/office/relations", usingJsonBody(""" { @@ -77,7 +82,7 @@ public class ReplaceDeceasedPartnerWithCommunityOfHeirs extends UseCase + obtain("Partner: Erbengemeinschaft %{nameOfDeceasedPerson}", () -> httpPatch("/api/hs/office/partners/%{Partner: %{partnerNumber}}", usingJsonBody(""" { "partnerRel": ${Partner-Relation: Erbengemeinschaft %{nameOfDeceasedPerson}} @@ -85,6 +90,27 @@ public class ReplaceDeceasedPartnerWithCommunityOfHeirs extends UseCase