Search in sources :

Example 1 with AccountRequestStoreService

use of com.forgerock.openbanking.common.services.store.accountrequest.AccountRequestStoreService in project openbanking-aspsp by OpenBankingToolkit.

the class AccountAccessConsentDecisionDelegateTest method setup.

@Before
public void setup() {
    accountRequestStoreService = mock(AccountRequestStoreService.class);
    consent = new FRAccountAccessConsent();
    consent.setId(CONSENT_ID);
    consent.setAispId(PISP_ID);
    consent.setUserId(USER_ID);
    consent.setObVersion(OBVersion.v3_1);
    consent.setAccountAccessConsent(FRReadConsentResponse.builder().data(FRReadConsentResponseData.builder().statusUpdateDateTime(DateTime.now()).build()).build());
    decisionDelegate = new AccountAccessConsentDecisionDelegate(getAccountStoreService(), OBJECT_MAPPER, accountRequestStoreService, consent);
}
Also used : FRAccountAccessConsent(com.forgerock.openbanking.common.model.openbanking.persistence.account.FRAccountAccessConsent) AccountRequestStoreService(com.forgerock.openbanking.common.services.store.accountrequest.AccountRequestStoreService) Before(org.junit.Before)

Aggregations

FRAccountAccessConsent (com.forgerock.openbanking.common.model.openbanking.persistence.account.FRAccountAccessConsent)1 AccountRequestStoreService (com.forgerock.openbanking.common.services.store.accountrequest.AccountRequestStoreService)1 Before (org.junit.Before)1