Skip to content

Commit

Permalink
Fix NPE in test routine caused by PaymentAccount with no name
Browse files Browse the repository at this point in the history
  • Loading branch information
jmacxx committed Nov 30, 2020
1 parent 52a4dff commit 0af139c
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,11 @@ public void testUseTradeCurrencySetInOfferViewWhenInPaymentAccountAvailable() {
final HashSet<PaymentAccount> paymentAccounts = new HashSet<>();
final ClearXchangeAccount zelleAccount = new ClearXchangeAccount();
zelleAccount.setId("234");
zelleAccount.setAccountName("zelleAccount");
paymentAccounts.add(zelleAccount);
final RevolutAccount revolutAccount = new RevolutAccount();
revolutAccount.setId("123");
revolutAccount.setAccountName("revolutAccount");
revolutAccount.setSingleTradeCurrency(new FiatCurrency("EUR"));
revolutAccount.addCurrency(new FiatCurrency("USD"));
paymentAccounts.add(revolutAccount);
Expand All @@ -104,9 +106,11 @@ public void testUseTradeAccountThatMatchesTradeCurrencySetInOffer() {
final HashSet<PaymentAccount> paymentAccounts = new HashSet<>();
final ClearXchangeAccount zelleAccount = new ClearXchangeAccount();
zelleAccount.setId("234");
zelleAccount.setAccountName("zelleAccount");
paymentAccounts.add(zelleAccount);
final RevolutAccount revolutAccount = new RevolutAccount();
revolutAccount.setId("123");
revolutAccount.setAccountName("revolutAccount");
revolutAccount.setSingleTradeCurrency(new FiatCurrency("EUR"));
paymentAccounts.add(revolutAccount);

Expand Down

0 comments on commit 0af139c

Please sign in to comment.