Skip to content

Commit e10fd64

Browse files
committed
Minor edits
1 parent 0b21b83 commit e10fd64

File tree

5 files changed

+4
-25
lines changed

5 files changed

+4
-25
lines changed

core/src/test/java/com/hyperwallet/android/transfermethod/HyperwalletCreatePayPalAccountTest.java

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -71,17 +71,13 @@ public void testCreatePayPalAccount_withSuccess() throws InterruptedException {
7171
String responseBody = mExternalResourceManager.getResourceContent("paypal_account_response.json");
7272
mServer.mockResponse().withHttpResponseCode(HttpURLConnection.HTTP_CREATED).withBody(responseBody).mock();
7373

74-
final PayPalAccount.Builder builder = new PayPalAccount
74+
final PayPalAccount payPalAccount = new PayPalAccount
7575
.Builder("US", "USD", "jsmith@paypal.com")
76-
.token("trm-ac5727ac-8fe7-42fb-b69d-977ebdd7b48b");
77-
78-
final PayPalAccount payPalAccount = builder.build();
76+
.build();
7977

8078
assertThat(payPalAccount.getField(TRANSFER_METHOD_COUNTRY), is("US"));
8179
assertThat(payPalAccount.getField(TRANSFER_METHOD_CURRENCY), is("USD"));
8280
assertThat(payPalAccount.getField(EMAIL), is("jsmith@paypal.com"));
83-
assertThat(payPalAccount.getField(TOKEN), is("trm-ac5727ac-8fe7-42fb-b69d-977ebdd7b48b"));
84-
8581

8682
Hyperwallet.getDefault().createPayPalAccount(payPalAccount, mListener);
8783
mAwait.await(50, TimeUnit.MILLISECONDS);
@@ -113,7 +109,6 @@ public void testCreatePayPalAccount_withValidationError() throws InterruptedExce
113109

114110
final PayPalAccount payPalAccount = new PayPalAccount
115111
.Builder("", "USD", "jsmith@paypal.com")
116-
.token("trm-ac5727ac-8fe7-42fb-b69d-977ebdd7b48b")
117112
.build();
118113

119114
Hyperwallet.getDefault().createPayPalAccount(payPalAccount, mListener);

core/src/test/java/com/hyperwallet/android/transfermethod/HyperwalletListBankCardsTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public void testListBankCards_returnsNoCards() throws InterruptedException {
120120

121121
@Test
122122
public void testListBankCards_returnsError() throws InterruptedException {
123-
String responseBody = mExternalResourceManager.getResourceContentError("bank_cards_error_response.json");
123+
String responseBody = mExternalResourceManager.getResourceContentError("system_error_response.json");
124124
mServer.mockResponse().withHttpResponseCode(HTTP_INTERNAL_ERROR).withBody(responseBody).mock();
125125

126126
HyperwalletBankCardPagination actualBankCard = new HyperwalletBankCardPagination();

core/src/test/java/com/hyperwallet/android/transfermethod/HyperwalletListPayPalAccountsTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ public void testListPayPalAccounts_returnsNoAccounts() throws InterruptedExcepti
140140

141141
@Test
142142
public void testListPayPalAccounts_returnsError() throws InterruptedException {
143-
String responseBody = mExternalResourceManager.getResourceContentError("paypal_accounts_error_response.json");
143+
String responseBody = mExternalResourceManager.getResourceContentError("system_error_response.json");
144144
mServer.mockResponse().withHttpResponseCode(HTTP_INTERNAL_ERROR).withBody(responseBody).mock();
145145

146146
HyperwalletPayPalAccountPagination payPalAccountPagination = new HyperwalletPayPalAccountPagination();

core/src/test/resources/errors/bank_cards_error_response.json

Lines changed: 0 additions & 8 deletions
This file was deleted.

core/src/test/resources/errors/paypal_accounts_error_response.json

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)