fixed tests
This commit is contained in:
@@ -107,9 +107,11 @@ public class BankingWebIntegrationTest {
|
|||||||
new HttpEntity(BasicAuthUtils.basicAuthHeaders("test_user@mail.com")),
|
new HttpEntity(BasicAuthUtils.basicAuthHeaders("test_user@mail.com")),
|
||||||
new ParameterizedTypeReference<List<AccountTransactionInfo>>() {}).getBody();
|
new ParameterizedTypeReference<List<AccountTransactionInfo>>() {}).getBody();
|
||||||
|
|
||||||
AccountTransactionInfo expectedTransactionInfo = new AccountTransactionInfo(moneyTransfer.getMoneyTransferId(), fromAccountId, toAccountId, toCents(amountToTransfer).longValue());
|
|
||||||
|
|
||||||
assertTrue(transactionInfoList.contains(expectedTransactionInfo));
|
assertTrue(transactionInfoList.stream().filter(ti -> ti.getTransactionId().equals(moneyTransfer.getMoneyTransferId()) &&
|
||||||
|
ti.getFromAccountId().equals(fromAccountId) &&
|
||||||
|
ti.getToAccountId().equals(toAccountId) &&
|
||||||
|
ti.getAmount() == toCents(amountToTransfer).longValue()).findFirst().isPresent());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|||||||
Reference in New Issue
Block a user