From d3c76a7cac0e881f91a4ff3a86b40669e9aa1328 Mon Sep 17 00:00:00 2001 From: Thomas <> Date: Fri, 29 Apr 2022 07:18:29 +0200 Subject: test(szr): add placeOfBirth and birthName to getIdentityLinkEidas request --- .../modules/auth/eidas/v2/test/SzrClientTestProduction.java | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'modules/authmodule-eIDAS-v2/src/test/java/at') diff --git a/modules/authmodule-eIDAS-v2/src/test/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/test/SzrClientTestProduction.java b/modules/authmodule-eIDAS-v2/src/test/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/test/SzrClientTestProduction.java index 5b8bd8fd..31b05676 100644 --- a/modules/authmodule-eIDAS-v2/src/test/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/test/SzrClientTestProduction.java +++ b/modules/authmodule-eIDAS-v2/src/test/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/test/SzrClientTestProduction.java @@ -53,6 +53,7 @@ import at.asitplus.eidas.specific.modules.auth.eidas.v2.exception.EidasSAuthenti import at.asitplus.eidas.specific.modules.auth.eidas.v2.exception.SzrCommunicationException; import at.asitplus.eidas.specific.modules.auth.eidas.v2.szr.SzrClient; import at.asitplus.eidas.specific.modules.auth.eidas.v2.utils.EidasResponseUtils; +import at.gv.e_government.reference.namespace.persondata._20020228.AlternativeNameType; import at.gv.e_government.reference.namespace.persondata._20020228.IdentificationType; import at.gv.e_government.reference.namespace.persondata._20020228.PersonNameType; import at.gv.e_government.reference.namespace.persondata._20020228.PhysicalPersonType; @@ -278,6 +279,15 @@ public class SzrClientTestProduction { } + // set place-of-birth + naturalPerson.setPlaceOfBirth(RandomStringUtils.randomAlphabetic(5)); + + //set birthname + final AlternativeNameType alternativeName = new AlternativeNameType(); + naturalPerson.setAlternativeName(alternativeName); + alternativeName.setFamilyName(RandomStringUtils.randomAlphabetic(5)); + + return personInfo; } -- cgit v1.2.3