formatting

This commit is contained in:
Michael Hönnig 2024-10-10 15:57:24 +02:00
parent 7f765ba992
commit d1d0dda373

View File

@ -177,39 +177,39 @@ class HsOfficeRelationControllerAcceptanceTest extends ContextBasedTestWithClean
RestAssured // @formatter:off
.given()
.header("current-subject", "superuser-alex@hostsharing.net")
.port(port)
.header("current-subject", "superuser-alex@hostsharing.net")
.port(port)
.when()
.get("http://localhost/api/hs/office/relations?personData=firby&contactData=Contact-Admin@FirstContact.Example.COM")
.get("http://localhost/api/hs/office/relations?personData=firby&contactData=Contact-Admin@FirstContact.Example.COM")
.then().log().all().assertThat()
.statusCode(200)
.contentType("application/json")
.body("", lenientlyEquals("""
[
{
"anchor": {
"personType": "LEGAL_PERSON",
"tradeName": "First GmbH"
},
"holder": {
"personType": "NATURAL_PERSON",
"givenName": "Susan",
"familyName": "Firby"
},
"type": "REPRESENTATIVE",
"contact": {
"caption": "first contact",
"postalAddress": "Vorname Nachname\\nStraße Hnr\\nPLZ Stadt",
"emailAddresses": {
"main": "contact-admin@firstcontact.example.com"
.statusCode(200)
.contentType("application/json")
.body("", lenientlyEquals("""
[
{
"anchor": {
"personType": "LEGAL_PERSON",
"tradeName": "First GmbH"
},
"phoneNumbers": {
"phone_office": "+49 123 1234567"
"holder": {
"personType": "NATURAL_PERSON",
"givenName": "Susan",
"familyName": "Firby"
},
"type": "REPRESENTATIVE",
"contact": {
"caption": "first contact",
"postalAddress": "Vorname Nachname\\nStraße Hnr\\nPLZ Stadt",
"emailAddresses": {
"main": "contact-admin@firstcontact.example.com"
},
"phoneNumbers": {
"phone_office": "+49 123 1234567"
}
}
}
}
]
"""));
]
"""));
// @formatter:on
}
}