@Test public void getBalanceSync() throws Exception { initWithRandomAccount(); Balance expectedBalance = new BalanceImpl(new BigDecimal("11.0")); when(mockAccountInfoRetriever.getBalance(anyString())).thenReturn(expectedBalance); Balance balance = kinAccount.getBalanceSync(); assertEquals(expectedBalance, balance); verify(mockAccountInfoRetriever).getBalance(expectedRandomAccount.getAccountId()); }
@NonNull @Override public Balance getBalanceSync() throws OperationFailedException { checkValidAccount(); return accountInfoRetriever.getBalance(account.getAccountId()); }
KinAccountImpl extends AbstractKinAccount { @NonNull @Override public Balance getBalanceSync() throws OperationFailedException { checkValidAccount(); return accountInfoRetriever.getBalance(account.getAccountId()); } }
KinAccountImpl extends AbstractKinAccount { @NonNull @Override public Balance getBalanceSync() throws OperationFailedException { checkValidAccount(); return accountInfoRetriever.getBalance(account.getAccountId()); } KinAccountImpl(KeyPair account, BackupRestore backupRestore, TransactionSender transactionSender,
                   AccountInfoRetriever accountInfoRetriever, BlockchainEventsCreator blockchainEventsCreator); }
KinAccountImpl extends AbstractKinAccount { @NonNull @Override public Balance getBalanceSync() throws OperationFailedException { checkValidAccount(); return accountInfoRetriever.getBalance(account.getAccountId()); } KinAccountImpl(KeyPair account, BackupRestore backupRestore, TransactionSender transactionSender,
                   AccountInfoRetriever accountInfoRetriever, BlockchainEventsCreator blockchainEventsCreator); @Override String getPublicAddress(); @Override Transaction buildTransactionSync(@NonNull String publicAddress, @NonNull BigDecimal amount,
                                            int fee); @Override Transaction buildTransactionSync(@NonNull String publicAddress, @NonNull BigDecimal amount,
                                            int fee, @Nullable String memo); @NonNull @Override TransactionId sendTransactionSync(Transaction transaction); @NonNull @Override TransactionId sendWhitelistTransactionSync(String whitelist); @NonNull @Override Balance getBalanceSync(); @Override int getStatusSync(); @Override ListenerRegistration addBalanceListener(@NonNull EventListener<Balance> listener); @Override ListenerRegistration addPaymentListener(@NonNull EventListener<PaymentInfo> listener); @Override ListenerRegistration addAccountCreationListener(EventListener<Void> listener); @Override String export(@NonNull String passphrase); }
KinAccountImpl extends AbstractKinAccount { @NonNull @Override public Balance getBalanceSync() throws OperationFailedException { checkValidAccount(); return accountInfoRetriever.getBalance(account.getAccountId()); } KinAccountImpl(KeyPair account, BackupRestore backupRestore, TransactionSender transactionSender,
                   AccountInfoRetriever accountInfoRetriever, BlockchainEventsCreator blockchainEventsCreator); @Override String getPublicAddress(); @Override Transaction buildTransactionSync(@NonNull String publicAddress, @NonNull BigDecimal amount,
                                            int fee); @Override Transaction buildTransactionSync(@NonNull String publicAddress, @NonNull BigDecimal amount,
                                            int fee, @Nullable String memo); @NonNull @Override TransactionId sendTransactionSync(Transaction transaction); @NonNull @Override TransactionId sendWhitelistTransactionSync(String whitelist); @NonNull @Override Balance getBalanceSync(); @Override int getStatusSync(); @Override ListenerRegistration addBalanceListener(@NonNull EventListener<Balance> listener); @Override ListenerRegistration addPaymentListener(@NonNull EventListener<PaymentInfo> listener); @Override ListenerRegistration addAccountCreationListener(EventListener<Void> listener); @Override String export(@NonNull String passphrase);  }