Search in sources :

Example 1 with OBFundsConfirmationConsent1DataDebtorAccount

use of uk.org.openbanking.datamodel.fund.OBFundsConfirmationConsent1DataDebtorAccount in project openbanking-aspsp by OpenBankingToolkit.

the class FRAccountIdentifierConverterTest method OBFundsConfirmationConsent1DataDebtorAccount_toFRAccountIdentifier.

@Test
public void OBFundsConfirmationConsent1DataDebtorAccount_toFRAccountIdentifier() {
    // Given
    OBFundsConfirmationConsent1DataDebtorAccount obFundsConfirmationConsent1DataDebtorAccount = new OBFundsConfirmationConsent1DataDebtorAccount();
    obFundsConfirmationConsent1DataDebtorAccount.schemeName(this.schemeName).identification(this.identification).name(this.name).secondaryIdentification(this.secondaryIdentification);
    // When
    FRAccountIdentifier accountIdentifier = toFRAccountIdentifier(obFundsConfirmationConsent1DataDebtorAccount);
    // Then
    assertThat(accountIdentifier.getSchemeName()).isEqualTo(this.schemeName);
    assertThat(accountIdentifier.getIdentification()).isEqualTo(this.identification);
    assertThat(accountIdentifier.getName()).isEqualTo(this.name);
    assertThat(accountIdentifier.getSecondaryIdentification()).isEqualTo(this.secondaryIdentification);
}
Also used : FRAccountIdentifier(com.forgerock.openbanking.common.model.openbanking.domain.common.FRAccountIdentifier) FRAccountIdentifierConverter.toFRAccountIdentifier(com.forgerock.openbanking.common.services.openbanking.converter.common.FRAccountIdentifierConverter.toFRAccountIdentifier) OBFundsConfirmationConsent1DataDebtorAccount(uk.org.openbanking.datamodel.fund.OBFundsConfirmationConsent1DataDebtorAccount) FRAccountIdentifierConverter.toOBFundsConfirmationConsent1DataDebtorAccount(com.forgerock.openbanking.common.services.openbanking.converter.common.FRAccountIdentifierConverter.toOBFundsConfirmationConsent1DataDebtorAccount) Test(org.junit.Test)

Example 2 with OBFundsConfirmationConsent1DataDebtorAccount

use of uk.org.openbanking.datamodel.fund.OBFundsConfirmationConsent1DataDebtorAccount in project openbanking-aspsp by OpenBankingToolkit.

the class FRAccountIdentifierConverterTest method FRAccountIdentifier_toOBFundsConfirmationConsent1DataDebtorAccount.

@Test
public void FRAccountIdentifier_toOBFundsConfirmationConsent1DataDebtorAccount() {
    // Given
    FRAccountIdentifier accountIdentifier = new FRAccountIdentifier();
    accountIdentifier.setName(this.name);
    accountIdentifier.setIdentification(this.identification);
    accountIdentifier.setSchemeName(this.schemeName);
    accountIdentifier.setSecondaryIdentification(this.secondaryIdentification);
    // When
    OBFundsConfirmationConsent1DataDebtorAccount account = toOBFundsConfirmationConsent1DataDebtorAccount(accountIdentifier);
    // Then
    assertThat(account.getName()).isEqualTo(this.name);
    assertThat(account.getIdentification()).isEqualTo(this.identification);
    assertThat(account.getSchemeName()).isEqualTo(this.schemeName);
    assertThat(account.getSecondaryIdentification()).isEqualTo(this.secondaryIdentification);
}
Also used : FRAccountIdentifier(com.forgerock.openbanking.common.model.openbanking.domain.common.FRAccountIdentifier) FRAccountIdentifierConverter.toFRAccountIdentifier(com.forgerock.openbanking.common.services.openbanking.converter.common.FRAccountIdentifierConverter.toFRAccountIdentifier) OBFundsConfirmationConsent1DataDebtorAccount(uk.org.openbanking.datamodel.fund.OBFundsConfirmationConsent1DataDebtorAccount) FRAccountIdentifierConverter.toOBFundsConfirmationConsent1DataDebtorAccount(com.forgerock.openbanking.common.services.openbanking.converter.common.FRAccountIdentifierConverter.toOBFundsConfirmationConsent1DataDebtorAccount) Test(org.junit.Test)

Aggregations

FRAccountIdentifier (com.forgerock.openbanking.common.model.openbanking.domain.common.FRAccountIdentifier)2 FRAccountIdentifierConverter.toFRAccountIdentifier (com.forgerock.openbanking.common.services.openbanking.converter.common.FRAccountIdentifierConverter.toFRAccountIdentifier)2 FRAccountIdentifierConverter.toOBFundsConfirmationConsent1DataDebtorAccount (com.forgerock.openbanking.common.services.openbanking.converter.common.FRAccountIdentifierConverter.toOBFundsConfirmationConsent1DataDebtorAccount)2 Test (org.junit.Test)2 OBFundsConfirmationConsent1DataDebtorAccount (uk.org.openbanking.datamodel.fund.OBFundsConfirmationConsent1DataDebtorAccount)2