aboutsummaryrefslogtreecommitdiff
path: root/modules/authmodule-eIDAS-v2/src/test
diff options
context:
space:
mode:
authorThomas <>2023-02-28 09:01:48 +0100
committerThomas <>2023-02-28 09:01:48 +0100
commit9ccbb61cf24d35196d1cf1334fb350afd4d01c8d (patch)
tree8732296225ccafad0b2957f515ac9b75e7e3e56f /modules/authmodule-eIDAS-v2/src/test
parentabef7bd701c780bab307de10c2e27a3b2d187198 (diff)
downloadNational_eIDAS_Gateway-9ccbb61cf24d35196d1cf1334fb350afd4d01c8d.tar.gz
National_eIDAS_Gateway-9ccbb61cf24d35196d1cf1334fb350afd4d01c8d.tar.bz2
National_eIDAS_Gateway-9ccbb61cf24d35196d1cf1334fb350afd4d01c8d.zip
fix(matching): remove HTML escapetion from address-search
Reason: special characters are requiered in plain text
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/tasks/ReceiveAustrianResidenceGuiResponseTaskTest.java27
1 files changed, 27 insertions, 0 deletions
diff --git a/modules/authmodule-eIDAS-v2/src/test/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/test/tasks/ReceiveAustrianResidenceGuiResponseTaskTest.java b/modules/authmodule-eIDAS-v2/src/test/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/test/tasks/ReceiveAustrianResidenceGuiResponseTaskTest.java
index 581dee0d..64fbf44b 100644
--- a/modules/authmodule-eIDAS-v2/src/test/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/test/tasks/ReceiveAustrianResidenceGuiResponseTaskTest.java
+++ b/modules/authmodule-eIDAS-v2/src/test/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/test/tasks/ReceiveAustrianResidenceGuiResponseTaskTest.java
@@ -177,6 +177,33 @@ public class ReceiveAustrianResidenceGuiResponseTaskTest {
}
@Test
+ public void exactlyOneRegisterResult_SpecialCharacters() throws Exception {
+
+ AdresssucheOutput userInput = new AdresssucheOutput(
+ RandomStringUtils.randomAlphabetic(8),
+ "Peilstein im Mühlviertel",
+ "äöüÄÖÜß",
+ RandomStringUtils.randomAlphabetic(8),
+ RandomStringUtils.randomAlphabetic(8));
+ setHttpParameters(userInput);
+
+ SimpleEidasData eidasData = setupEidasData();
+ RegisterStatusResults registerSearchResult = buildResultWithOneMatch(buildMatchingRegisterResult(
+ eidasData));
+ MatchingTaskUtils.storeIntermediateMatchingResult(pendingReq, registerSearchResult);
+ mockRegisterSearch(userInput, registerSearchResult, eidasData);
+
+ task.execute(pendingReq, executionContext);
+
+ // validate state
+ assertNull("Transition To S9", executionContext.get(Constants.TRANSITION_TO_CREATE_NEW_ERNP_ENTRY_TASK));
+ MatchedPersonResult matchingResult = MatchingTaskUtils.getFinalMatchingResult(pendingReq);
+ assertNotNull("no final matching result", matchingResult);
+ validateMatchedPerson(matchingResult, registerSearchResult);
+
+ }
+
+ @Test
public void exactlyOneRegisterResult_UpdateRequired() throws Exception {
AdresssucheOutput userInput = setupUserInput();
SimpleEidasData eidasData = setupEidasData();