[bisq-network/bisq] PaymentAccount object removal from ObservableSet issue (#3572)

beingindot notifications at github.com
Mon Nov 11 07:29:06 UTC 2019


beingindot commented on this pull request.



> @@ -71,4 +76,24 @@ private static PaymentAccount createAccountWithAge(AccountAgeWitnessService serv
 
         return account;
     }
+
+    @Test
+    public void testRemoveAccount() {
+        PaymentAccountPayload payload = mock(PaymentAccountPayload.class);
+
+        PaymentAccount account = mock(PaymentAccount.class);
+        account.setAccountName("account name");
+        when(account.getPaymentAccountPayload()).thenReturn(payload);

Thanks @julianknutsen for providing alternate object creation. Earlier i didnt know object creation is this simple. Have included the changes now. pls review

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/bisq-network/bisq/pull/3572#discussion_r344584665
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20191110/ccfca780/attachment.html>


More information about the bisq-github mailing list