aboutsummaryrefslogtreecommitdiff
path: root/eidas_modules/authmodule-eIDAS-v2/src/test
diff options
context:
space:
mode:
authorChristian Kollmann <christian.kollmann@a-sit.at>2021-02-22 14:06:16 +0100
committerChristian Kollmann <christian.kollmann@a-sit.at>2021-02-22 15:03:41 +0100
commit5eb83e0ca367958c81a7b0ee2cbd047482dd1974 (patch)
treeb21f7f07e85e71b0cd4d292407cb85f07c040ef6 /eidas_modules/authmodule-eIDAS-v2/src/test
parent39b5e38cc5e3c7c555ae10e0ff0f684c9bcc0966 (diff)
downloadNational_eIDAS_Gateway-5eb83e0ca367958c81a7b0ee2cbd047482dd1974.tar.gz
National_eIDAS_Gateway-5eb83e0ca367958c81a7b0ee2cbd047482dd1974.tar.bz2
National_eIDAS_Gateway-5eb83e0ca367958c81a7b0ee2cbd047482dd1974.zip
Move country specific search in registers into common service
Diffstat (limited to 'eidas_modules/authmodule-eIDAS-v2/src/test')
-rw-r--r--eidas_modules/authmodule-eIDAS-v2/src/test/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/test/tasks/InitialSearchTaskTest.java18
1 files changed, 9 insertions, 9 deletions
diff --git a/eidas_modules/authmodule-eIDAS-v2/src/test/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/test/tasks/InitialSearchTaskTest.java b/eidas_modules/authmodule-eIDAS-v2/src/test/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/test/tasks/InitialSearchTaskTest.java
index ae2bc93e..4dd6b92e 100644
--- a/eidas_modules/authmodule-eIDAS-v2/src/test/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/test/tasks/InitialSearchTaskTest.java
+++ b/eidas_modules/authmodule-eIDAS-v2/src/test/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/test/tasks/InitialSearchTaskTest.java
@@ -106,7 +106,7 @@ public class InitialSearchTaskTest {
public void setUp() throws URISyntaxException, EaafStorageException {
MockitoAnnotations.initMocks(this);
registerSearchService = new RegisterSearchService(zmrClient, ernpClient);
- task = new InitialSearchTask(new ArrayList<>(), registerSearchService, ernpClient, zmrClient);
+ task = new InitialSearchTask(new ArrayList<>(), registerSearchService);
MockHttpServletRequest httpReq = new MockHttpServletRequest("POST", "https://localhost/authhandler");
MockHttpServletResponse httpResp = new MockHttpServletResponse();
@@ -252,8 +252,8 @@ public class InitialSearchTaskTest {
randomBirthDate, null, null, taxNumber, null)));
Mockito.when(ernpClient.searchWithPersonIdentifier(randomIdentifier)).thenReturn(Collections.emptyList());
task = new InitialSearchTask(
- Collections.singletonList(new ItSpecificDetailSearchProcessor(ernpClient, zmrClient)),
- registerSearchService, ernpClient, zmrClient);
+ Collections.singletonList(new ItSpecificDetailSearchProcessor(registerSearchService)),
+ registerSearchService);
task.execute(pendingReq1, executionContext);
@@ -282,8 +282,8 @@ public class InitialSearchTaskTest {
randomFamilyName, randomBirthDate, randomPlaceOfBirth, randomBirthName, null, null)));
Mockito.when(ernpClient.searchWithPersonIdentifier(randomIdentifier)).thenReturn(Collections.emptyList());
task = new InitialSearchTask(
- Collections.singletonList(new DeSpecificDetailSearchProcessor(ernpClient, zmrClient)),
- registerSearchService, ernpClient, zmrClient);
+ Collections.singletonList(new DeSpecificDetailSearchProcessor(registerSearchService)),
+ registerSearchService);
task.execute(pendingReq1, executionContext);
@@ -318,8 +318,8 @@ public class InitialSearchTaskTest {
randomBirthName)).thenReturn(zmrResultSpecific);
Mockito.when(ernpClient.searchWithPersonIdentifier(randomIdentifier)).thenReturn(Collections.emptyList());
task = new InitialSearchTask(
- Collections.singletonList(new DeSpecificDetailSearchProcessor(ernpClient, zmrClient)),
- registerSearchService, ernpClient, zmrClient);
+ Collections.singletonList(new DeSpecificDetailSearchProcessor(registerSearchService)),
+ registerSearchService);
TaskExecutionException exception = assertThrows(TaskExecutionException.class,
() -> task.execute(pendingReq1, executionContext));
@@ -351,8 +351,8 @@ public class InitialSearchTaskTest {
Mockito.when(zmrClient.searchItSpecific(randomTaxNumber)).thenReturn(zmrResultSpecific);
Mockito.when(ernpClient.searchWithPersonIdentifier(randomIdentifier)).thenReturn(Collections.emptyList());
task = new InitialSearchTask(
- Collections.singletonList(new ItSpecificDetailSearchProcessor(ernpClient, zmrClient)),
- registerSearchService, ernpClient, zmrClient);
+ Collections.singletonList(new ItSpecificDetailSearchProcessor(registerSearchService)),
+ registerSearchService);
TaskExecutionException exception = assertThrows(TaskExecutionException.class,
() -> task.execute(pendingReq1, executionContext));