Skip to content
Snippets Groups Projects

OZG-7878 servicekonto: Catch runtime-exception in getPostfachAddressType

Merged Jan Zickermann requested to merge OZG-7978-Resillienteres-PostfachID-Parsing into develop
All threads resolved!
@@ -107,8 +107,9 @@ class ServiceKontoFactoryTest {
@Nested
class TestWithRestResponseName {
@DisplayName("should call buildOsiPostfachV1Address")
@Test
void shouldCallBuildAddresses() {
void shouldCallBuildOsiPostfachV1Address() {
getPostfachAddresses();
verify(factory).buildOsiPostfachV1Address(any(), anyInt());
@@ -159,8 +160,9 @@ class ServiceKontoFactoryTest {
private final FormData formDataWithBadRestResponseName = FormDataUtils.from(FORM_DATA)
.put(ServiceKontoFactory.REST_RESPONSE_NAME, List.of(Map.of())).build();
@DisplayName("should call buildOsiPostfachV1Address")
@Test
void shouldCallBuildAddresses() {
void shouldCallBuildOsiPostfachV1Address() {
getPostfachAddresses();
verify(factory).buildOsiPostfachV1Address(any(), anyInt());
Loading