feature/add-scenario-test-for-deceased-partner-with-community-of-heirs #137

Merged
2 changed files with 16 additions and 8 deletions
Showing only changes of commit b845671617 - Show all commits

View File

@ -93,6 +93,8 @@ class HsOfficeScenarioTests extends ScenarioTest {
""") """)
.given("officePhoneNumber", "+49 40 654321-0") .given("officePhoneNumber", "+49 40 654321-0")
.given("emailAddress", "hamburg@test-ag.example.org") .given("emailAddress", "hamburg@test-ag.example.org")
.given("registrationOffice", "Registergericht Hamburg")
.given("registrationNumber", "1234567")
.doRun() .doRun()
.keep(); .keep();
} }
@ -118,6 +120,9 @@ class HsOfficeScenarioTests extends ScenarioTest {
""") """)
.given("officePhoneNumber", "+49 40 123456") .given("officePhoneNumber", "+49 40 123456")
.given("emailAddress", "michelle.matthieu@example.org") .given("emailAddress", "michelle.matthieu@example.org")
.given("birthday", "1951-03-25")
.given("birthPlace", "Neustadt a.d.R.")
.given("birthName", "Eichbaum")
.doRun() .doRun()
.keep(); .keep();
} }
@ -601,10 +606,10 @@ class HsOfficeScenarioTests extends ScenarioTest {
.given("partnerNumber", "P-31011") .given("partnerNumber", "P-31011")
.given("nameOfDeceasedPerson", "Michelle Matthieu") // FIXME: redundant .given("nameOfDeceasedPerson", "Michelle Matthieu") // FIXME: redundant
.given( .given(
// "name": "Erbengemeinschaft Michelle Matthieu", // FIXME: automatic?
"communityOfHeirsPostalAddress", """ "communityOfHeirsPostalAddress", """
"name": "Erbengemeinschaft Michelle Matthieu", // FIXME: automatic?
"co": "Lena Stadland", "co": "Lena Stadland",
"street": "Im Wischer", "street": "Im Wischer 14",
"zipcode": "22987", "zipcode": "22987",
"city": "Hamburg", "city": "Hamburg",
"country": "Germany" "country": "Germany"

View File

@ -69,8 +69,11 @@ public class CreatePartner extends UseCase<CreatePartner> {
"contact.uuid": ${Contact: %{contactCaption}} "contact.uuid": ${Contact: %{contactCaption}}
}, },
"details": { "details": {
"registrationOffice": "Registergericht Hamburg", "birthday": ${birthday???},
"registrationNumber": "1234567" "birthPlace": ${birthPlace???},
"birthName": ${birthName???},
"registrationOffice": ${registrationOffice???},
"registrationNumber": ${registrationNumber???}
} }
} }
""")) """))