From 3cd52ab38e4d57b6f056dbf47897d80f419522df Mon Sep 17 00:00:00 2001 From: Thomas <> Date: Mon, 19 Apr 2021 18:58:31 +0200 Subject: refactor DateOfBirth in IAuthData and all implementations because DateOfBirth from SZR has not be a valid Date object --- .../pvp2/idp/test/AuthenticationActionTest.java | 25 ++++++++++++---------- 1 file changed, 14 insertions(+), 11 deletions(-) (limited to 'eaaf_modules/eaaf_module_pvp2_idp/src/test/java') diff --git a/eaaf_modules/eaaf_module_pvp2_idp/src/test/java/at/gv/egiz/eaaf/modules/pvp2/idp/test/AuthenticationActionTest.java b/eaaf_modules/eaaf_module_pvp2_idp/src/test/java/at/gv/egiz/eaaf/modules/pvp2/idp/test/AuthenticationActionTest.java index df5c15f8..cab14a5d 100644 --- a/eaaf_modules/eaaf_module_pvp2_idp/src/test/java/at/gv/egiz/eaaf/modules/pvp2/idp/test/AuthenticationActionTest.java +++ b/eaaf_modules/eaaf_module_pvp2_idp/src/test/java/at/gv/egiz/eaaf/modules/pvp2/idp/test/AuthenticationActionTest.java @@ -157,10 +157,6 @@ public class AuthenticationActionTest { return null; } - @Override - public String getFormatedDateOfBirth() { - return DateFormatUtils.format(getDateOfBirth(), "yyyy-MM-dd"); - } @Override public String getFamilyName() { @@ -184,13 +180,7 @@ public class AuthenticationActionTest { public String getEidasQaaLevel() { return EaafConstants.EIDAS_LOA_LOW; } - - @Override - public Date getDateOfBirth() { - return new Date(); - - } - + @Override public String getCiticenCountryCode() { // TODO Auto-generated method stub @@ -221,6 +211,19 @@ public class AuthenticationActionTest { public Date getAuthenticationIssueInstant() { return new Date(); } + + @Override + public String getDateOfBirth() { + return RandomStringUtils.randomNumeric(4) + "-" + RandomStringUtils.randomNumeric(2) + "-" + + RandomStringUtils.randomNumeric(2); + + } + + @Override + public String getDateOfBirthFormated(String pattern) { + // TODO Auto-generated method stub + return null; + } }; } -- cgit v1.2.3