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);
}
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);
}
Aggregations