From d1d0dda3739cbad90f633e7c12d968daac55b604 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20H=C3=B6nnig?= Date: Thu, 10 Oct 2024 15:57:24 +0200 Subject: [PATCH] formatting --- ...fficeRelationControllerAcceptanceTest.java | 56 +++++++++---------- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/src/test/java/net/hostsharing/hsadminng/hs/office/relation/HsOfficeRelationControllerAcceptanceTest.java b/src/test/java/net/hostsharing/hsadminng/hs/office/relation/HsOfficeRelationControllerAcceptanceTest.java index 405bee93..e767ff1c 100644 --- a/src/test/java/net/hostsharing/hsadminng/hs/office/relation/HsOfficeRelationControllerAcceptanceTest.java +++ b/src/test/java/net/hostsharing/hsadminng/hs/office/relation/HsOfficeRelationControllerAcceptanceTest.java @@ -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 } }