@Test public void showWalletInfo(){ presenter.showWalletInfo(); Mockito.verify(view).showWalletInfo(Mockito.any(Wallet.class)); }
@Override public void showWalletInfo() { if (mWalletEntity != null && isViewAttached()) { if(!mWalletEntity.isHD()){ List<Wallet> walletList = WalletManager.getInstance().getWalletList(); for (Wallet walletEntity : walletList) { if (mWalletEntity.getUuid().equals(walletEntity.getUuid())) { mWalletEntity = walletEntity; break; } } } getView().showWalletInfo(mWalletEntity); } }
ManageWalletPresenter extends BasePresenter<ManageWalletContract.View> implements ManageWalletContract.Presenter { @Override public void showWalletInfo() { if (mWalletEntity != null && isViewAttached()) { if(!mWalletEntity.isHD()){ List<Wallet> walletList = WalletManager.getInstance().getWalletList(); for (Wallet walletEntity : walletList) { if (mWalletEntity.getUuid().equals(walletEntity.getUuid())) { mWalletEntity = walletEntity; break; } } } getView().showWalletInfo(mWalletEntity); } } }
ManageWalletPresenter extends BasePresenter<ManageWalletContract.View> implements ManageWalletContract.Presenter { @Override public void showWalletInfo() { if (mWalletEntity != null && isViewAttached()) { if(!mWalletEntity.isHD()){ List<Wallet> walletList = WalletManager.getInstance().getWalletList(); for (Wallet walletEntity : walletList) { if (mWalletEntity.getUuid().equals(walletEntity.getUuid())) { mWalletEntity = walletEntity; break; } } } getView().showWalletInfo(mWalletEntity); } }  }
ManageWalletPresenter extends BasePresenter<ManageWalletContract.View> implements ManageWalletContract.Presenter { @Override public void showWalletInfo() { if (mWalletEntity != null && isViewAttached()) { if(!mWalletEntity.isHD()){ List<Wallet> walletList = WalletManager.getInstance().getWalletList(); for (Wallet walletEntity : walletList) { if (mWalletEntity.getUuid().equals(walletEntity.getUuid())) { mWalletEntity = walletEntity; break; } } } getView().showWalletInfo(mWalletEntity); } }  @Override void init(Wallet wallet); @Override Wallet getWalletData(); @Override void showWalletInfo(); @Override void validPassword(int viewType, Credentials credentials); @Override void deleteObservedWallet(); @Override void deleteWallet(); @Override void modifyName(String name); @Override void modifyHDName(String name); @Override void backup(); @Override boolean isExists(String walletName); }
ManageWalletPresenter extends BasePresenter<ManageWalletContract.View> implements ManageWalletContract.Presenter { @Override public void showWalletInfo() { if (mWalletEntity != null && isViewAttached()) { if(!mWalletEntity.isHD()){ List<Wallet> walletList = WalletManager.getInstance().getWalletList(); for (Wallet walletEntity : walletList) { if (mWalletEntity.getUuid().equals(walletEntity.getUuid())) { mWalletEntity = walletEntity; break; } } } getView().showWalletInfo(mWalletEntity); } }  @Override void init(Wallet wallet); @Override Wallet getWalletData(); @Override void showWalletInfo(); @Override void validPassword(int viewType, Credentials credentials); @Override void deleteObservedWallet(); @Override void deleteWallet(); @Override void modifyName(String name); @Override void modifyHDName(String name); @Override void backup(); @Override boolean isExists(String walletName);  }