From 2976321898c28a63d7cc16f7dc68e56c6e47ee56 Mon Sep 17 00:00:00 2001 From: Matheus Nakaya Date: Wed, 8 Nov 2017 11:18:54 -0200 Subject: [PATCH] tests: fixed some BankAccount tests --- src/test/java/br/com/moip/api/BankAccountAPITest.java | 2 +- src/test/resources/plays/bankaccounts/getlist.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/java/br/com/moip/api/BankAccountAPITest.java b/src/test/java/br/com/moip/api/BankAccountAPITest.java index da5f0bf..3fd962b 100644 --- a/src/test/java/br/com/moip/api/BankAccountAPITest.java +++ b/src/test/java/br/com/moip/api/BankAccountAPITest.java @@ -63,7 +63,7 @@ public void shouldGetOneAccount() { @Play("bankaccounts/getlist") @Test public void shouldGetAccountList() { - List createdBankAccounts = api.getList("BKA-E0BAC6D15696"); + List createdBankAccounts = api.getList("MPA-E0BAC6D15696"); assertEquals(4, createdBankAccounts.size()); assertEquals("BKA-P9O93Z6PKUTI", createdBankAccounts.get(0).getId()); assertEquals("BKA-W2WWYEI9GKG1", createdBankAccounts.get(1).getId()); diff --git a/src/test/resources/plays/bankaccounts/getlist.yaml b/src/test/resources/plays/bankaccounts/getlist.yaml index de0a707..df0076c 100644 --- a/src/test/resources/plays/bankaccounts/getlist.yaml +++ b/src/test/resources/plays/bankaccounts/getlist.yaml @@ -2,7 +2,7 @@ interactions: - request: - uri: /v2/accounts/BKA-E0BAC6D15696/bankaccounts + uri: /v2/accounts/MPA-E0BAC6D15696/bankaccounts headers: "Content-Type": application/json Authorization: Basic MDEwMTAxMDEwMTAxMDEwMTAxMDEwMTAxMDEwMTAxMDE6QUJBQkFCQUJBQkFCQUJBQkFCQUJBQkFCQUJBQkFCQUJBQkFCQUJBQg==