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 RestAssured // @formatter:off
.given() .given()
.header("current-subject", "superuser-alex@hostsharing.net") .header("current-subject", "superuser-alex@hostsharing.net")
.port(port) .port(port)
.when() .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() .then().log().all().assertThat()
.statusCode(200) .statusCode(200)
.contentType("application/json") .contentType("application/json")
.body("", lenientlyEquals(""" .body("", lenientlyEquals("""
[ [
{ {
"anchor": { "anchor": {
"personType": "LEGAL_PERSON", "personType": "LEGAL_PERSON",
"tradeName": "First GmbH" "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"
}, },
"phoneNumbers": { "holder": {
"phone_office": "+49 123 1234567" "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 // @formatter:on
} }
} }