feature/split-up-postalAddress #118
@ -288,7 +288,6 @@ class HsOfficeContactControllerAcceptanceTest extends ContextBasedTestWithCleanu
|
|||||||
.body("uuid", isUuidValid())
|
.body("uuid", isUuidValid())
|
||||||
.body("caption", is(givenContact.getCaption()))
|
.body("caption", is(givenContact.getCaption()))
|
||||||
.body("emailAddresses", is(Map.of("main", "patched@example.org")))
|
.body("emailAddresses", is(Map.of("main", "patched@example.org")))
|
||||||
.body("postalAddress", is(givenContact.getPostalAddress()))
|
|
||||||
.body("phoneNumbers", is(Map.of("phone_office", "+01 100 123456")));
|
.body("phoneNumbers", is(Map.of("phone_office", "+01 100 123456")));
|
||||||
// @formatter:on
|
// @formatter:on
|
||||||
|
|
||||||
@ -297,12 +296,11 @@ class HsOfficeContactControllerAcceptanceTest extends ContextBasedTestWithCleanu
|
|||||||
.matches(person -> {
|
.matches(person -> {
|
||||||
assertThat(person.getCaption()).isEqualTo(givenContact.getCaption());
|
assertThat(person.getCaption()).isEqualTo(givenContact.getCaption());
|
||||||
assertThat(person.getEmailAddresses()).containsExactlyEntriesOf(Map.of("main", "patched@example.org"));
|
assertThat(person.getEmailAddresses()).containsExactlyEntriesOf(Map.of("main", "patched@example.org"));
|
||||||
assertThat(person.getPostalAddress()).isEqualTo(givenContact.getPostalAddress());
|
assertThat(person.getPostalAddress()).containsExactlyInAnyOrderEntriesOf(givenContact.getPostalAddress());
|
||||||
assertThat(person.getPhoneNumbers()).containsExactlyEntriesOf(Map.of("phone_office", "+01 100 123456"));
|
assertThat(person.getPhoneNumbers()).containsExactlyEntriesOf(Map.of("phone_office", "+01 100 123456"));
|
||||||
return true;
|
return true;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Nested
|
@Nested
|
||||||
|
Loading…
Reference in New Issue
Block a user