Skip to content

Commit

Permalink
PR #3572 review changes included
Browse files Browse the repository at this point in the history
  • Loading branch information
beingindot committed Nov 11, 2019
1 parent ca17afd commit 7f1014f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
1 change: 0 additions & 1 deletion core/src/main/java/bisq/core/payment/PaymentAccount.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@

import static com.google.common.base.Preconditions.checkNotNull;

@EqualsAndHashCode
@ToString
@Getter
@Slf4j
Expand Down
7 changes: 2 additions & 5 deletions core/src/test/java/bisq/core/payment/PaymentAccountsTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,8 @@ private static PaymentAccount createAccountWithAge(AccountAgeWitnessService serv

@Test
public void testRemoveAccount() {
PaymentAccountPayload payload = mock(PaymentAccountPayload.class);

PaymentAccount account = mock(PaymentAccount.class);
PaymentAccount account = new RevolutAccount();
account.setAccountName("account name");
when(account.getPaymentAccountPayload()).thenReturn(payload);

ObservableSet<PaymentAccount> paymentAccountsAsObservable;
paymentAccountsAsObservable = FXCollections.observableSet(new UserPayload().getPaymentAccounts());
Expand All @@ -92,7 +89,7 @@ public void testRemoveAccount() {
paymentAccountsAsObservable.add(account);

//remove element with some state change
account.setAccountName("new account name");
account.setAccountName("new account name for new hash code");

assertTrue(paymentAccountsAsObservable.remove(account));
}
Expand Down

0 comments on commit 7f1014f

Please sign in to comment.