@Test void updateScaStatusConsentStatusConsentData_failure() throws IOException { when(cmsPsuAisClient.updateAuthorisationStatus(any(), any(), any(), any(), any(), any(), any(), any(), any())).thenReturn(ResponseEntity.ok().build()); when(tokenStorageService.toBase64String(any())).thenThrow(IOException.class); assertThrows(AuthorizationException.class, () -> redirectConsentService.updateScaStatusConsentStatusConsentData(USER_ID, getConsentWorkflow(AisConsentRequestType.DEDICATED_ACCOUNTS, IBAN_DE))); }
@Override public void updateScaStatusConsentStatusConsentData(String psuId, ConsentWorkflow workflow) { updateCmsAuthorizationScaStatus(workflow, psuId); updateAspspConsentData(workflow); }
RedirectConsentServiceImpl implements RedirectConsentService { @Override public void updateScaStatusConsentStatusConsentData(String psuId, ConsentWorkflow workflow) { updateCmsAuthorizationScaStatus(workflow, psuId); updateAspspConsentData(workflow); } }
RedirectConsentServiceImpl implements RedirectConsentService { @Override public void updateScaStatusConsentStatusConsentData(String psuId, ConsentWorkflow workflow) { updateCmsAuthorizationScaStatus(workflow, psuId); updateAspspConsentData(workflow); }  }
RedirectConsentServiceImpl implements RedirectConsentService { @Override public void updateScaStatusConsentStatusConsentData(String psuId, ConsentWorkflow workflow) { updateCmsAuthorizationScaStatus(workflow, psuId); updateAspspConsentData(workflow); }  @Override void selectScaMethod(String scaMethodId, final ConsentWorkflow workflow); @Override void updateAccessByConsentType(ConsentWorkflow workflow, List<AccountDetailsTO> listOfAccounts); @Override void updateScaStatusConsentStatusConsentData(String psuId, ConsentWorkflow workflow); @Override void startConsent(final ConsentWorkflow workflow, AisConsentTO aisConsent, List<AccountDetailsTO> listOfAccounts); @Override ConsentWorkflow identifyConsent(String encryptedConsentId, String authorizationId, boolean strict, String consentCookieString, BearerTokenTO bearerToken); }
RedirectConsentServiceImpl implements RedirectConsentService { @Override public void updateScaStatusConsentStatusConsentData(String psuId, ConsentWorkflow workflow) { updateCmsAuthorizationScaStatus(workflow, psuId); updateAspspConsentData(workflow); }  @Override void selectScaMethod(String scaMethodId, final ConsentWorkflow workflow); @Override void updateAccessByConsentType(ConsentWorkflow workflow, List<AccountDetailsTO> listOfAccounts); @Override void updateScaStatusConsentStatusConsentData(String psuId, ConsentWorkflow workflow); @Override void startConsent(final ConsentWorkflow workflow, AisConsentTO aisConsent, List<AccountDetailsTO> listOfAccounts); @Override ConsentWorkflow identifyConsent(String encryptedConsentId, String authorizationId, boolean strict, String consentCookieString, BearerTokenTO bearerToken);  }