aboutsummaryrefslogtreecommitdiff
path: root/modules/authmodule-eIDAS-v2/src/test
diff options
context:
space:
mode:
authorThomas <>2022-04-29 07:18:29 +0200
committerThomas <>2022-04-29 07:18:29 +0200
commitd3c76a7cac0e881f91a4ff3a86b40669e9aa1328 (patch)
tree10f67b3ad191fec3e8c58c245b1a17b7c9e9e6b1 /modules/authmodule-eIDAS-v2/src/test
parent21de9b34ee9f8e57ea4102f52b733d64951898fb (diff)
downloadNational_eIDAS_Gateway-d3c76a7cac0e881f91a4ff3a86b40669e9aa1328.tar.gz
National_eIDAS_Gateway-d3c76a7cac0e881f91a4ff3a86b40669e9aa1328.tar.bz2
National_eIDAS_Gateway-d3c76a7cac0e881f91a4ff3a86b40669e9aa1328.zip
test(szr): add placeOfBirth and birthName to getIdentityLinkEidas request
Diffstat (limited to 'modules/authmodule-eIDAS-v2/src/test')
-rw-r--r--modules/authmodule-eIDAS-v2/src/test/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/test/SzrClientTestProduction.java10
1 files changed, 10 insertions, 0 deletions
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;
}