From fcdb6f31d02ff5ca7841f5a813327d3df7ef95d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marko=20Mili=C4=87?= Date: Thu, 24 Jul 2025 13:49:48 +0200 Subject: [PATCH] test/Improve Read transaction list of an account tests --- .../AccountInformationServiceAISApiTest.scala | 22 +++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/obp-api/src/test/scala/code/api/berlin/group/v1_3/AccountInformationServiceAISApiTest.scala b/obp-api/src/test/scala/code/api/berlin/group/v1_3/AccountInformationServiceAISApiTest.scala index 889d0bfdf..b97039db9 100644 --- a/obp-api/src/test/scala/code/api/berlin/group/v1_3/AccountInformationServiceAISApiTest.scala +++ b/obp-api/src/test/scala/code/api/berlin/group/v1_3/AccountInformationServiceAISApiTest.scala @@ -192,7 +192,25 @@ class AccountInformationServiceAISApiTest extends BerlinGroupServerSetupV1_3 wit response.code should equal(200) response.body.extract[TransactionsJsonV13].account.iban should not be ("") // response.body.extract[TransactionsJsonV13].transactions.booked.head.length >0 should be (true) - response.body.extract[TransactionsJsonV13].transactions.pending.head.length >0 should be (true) + response.body.extract[TransactionsJsonV13].transactions.pending.head.nonEmpty should be (true) + response.body.extract[TransactionsJsonV13].transactions.booked.nonEmpty should be (true) + + + val requestGet2 = (V1_3_BG / "accounts" / testAccountId1.value / "transactions").GET <@ (user1) < 0 should be (true) + response.body.extract[TransactionsJsonV13].transactions.pending.head.nonEmpty should be (true) // response.body.extract[TransactionsJsonV13].transactions.pending.length > 0 should be (true) val transactionId = response.body.extract[TransactionsJsonV13].transactions.pending.head.head.transactionId