libeufin

Integration and sandbox testing for FinTech APIs and data formats
Log | Files | Refs | Submodules | README | LICENSE

commit 3e0b77584f87b402c4e85a286b65a49c8828374f
parent 85ef4202525739e047fcb3123325f0d843fc5588
Author: Antoine A <>
Date:   Mon,  4 Dec 2023 22:36:10 +0000

Improve test

Diffstat:
Mbank/src/test/kotlin/BankIntegrationApiTest.kt | 8++++++--
1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/bank/src/test/kotlin/BankIntegrationApiTest.kt b/bank/src/test/kotlin/BankIntegrationApiTest.kt @@ -96,11 +96,15 @@ class BankIntegrationApiTest { // Check OK client.post("/taler-integration/withdrawal-operation/$uuid") { json(req) - }.assertOk() + }.assertOkJson<BankWithdrawalOperationPostResponse> { + assertEquals(WithdrawalStatus.selected, it.status) + } // Check idempotence client.post("/taler-integration/withdrawal-operation/$uuid") { json(req) - }.assertOk() + }.assertOkJson<BankWithdrawalOperationPostResponse> { + assertEquals(WithdrawalStatus.selected, it.status) + } // Check already selected client.post("/taler-integration/withdrawal-operation/$uuid") { json(req) {