fixed the create counterpart test

This commit is contained in:
hongwei1 2017-02-22 16:29:04 +01:00
parent ac30b5b6e8
commit 61ba61fcd1
2 changed files with 4 additions and 3 deletions

View File

@ -362,7 +362,7 @@ trait APIMethods210 {
// Following 7 lines: just transfer the details body, add Bank_Id and Account_Id in the Detail part.
toBankId <- Full(BankId(toCounterparty.otherBankId ))
toAccountId <- Full(AccountId(toCounterparty.otherAccountId))
toAccountProvider <- Full(AccountId(toCounterparty.otherAccountProvider))
toAccountProvider <- Full(toCounterparty.otherAccountProvider)
// Use toAccountProvider to determine how we validate the toBank and toAccount.
// i.e. Only validate toBankId and toAccountId if the toAccountProvider is OBP
// i.e. if toAccountProvider is OBP we can expect the account to exist locally.

View File

@ -35,8 +35,9 @@ trait LocalMappedConnectorTestSetup extends TestConnectorSetupWithStandardPermis
mOtherBankId(bankId).
mOtherAccountId(accountId).
mIsBeneficiary(isBeneficiary).
mOtherAccountRoutingScheme("IBAN").
saveMe
mOtherAccountRoutingScheme("IBAN"). //it is for test, so set it the default value
mOtherAccountProvider("OBP"). //it is for test, so set it the default value
saveMe
}
// TODO: Should return an option or box so can test if the insert succeeded