@Test public void testInValidQRCode(){ String testnet = "lax1x8z5nfgjnaryutayxxkzzkrfzenpwl7k4xcjf1"; presenter.validQRCode(testnet); Mockito.verify(view).showLongToast(Mockito.any()); }
@Override public void validQRCode(String text) { if (!JZWalletUtil.isValidAddress(text)) { showLongToast(string(R.string.unrecognized_content)); return; } if (isViewAttached()) { getView().showAddress(text); } }
AddNewAddressPresenter extends BasePresenter<AddNewAddressContract.View> implements AddNewAddressContract.Presenter { @Override public void validQRCode(String text) { if (!JZWalletUtil.isValidAddress(text)) { showLongToast(string(R.string.unrecognized_content)); return; } if (isViewAttached()) { getView().showAddress(text); } } }
AddNewAddressPresenter extends BasePresenter<AddNewAddressContract.View> implements AddNewAddressContract.Presenter { @Override public void validQRCode(String text) { if (!JZWalletUtil.isValidAddress(text)) { showLongToast(string(R.string.unrecognized_content)); return; } if (isViewAttached()) { getView().showAddress(text); } }  }
AddNewAddressPresenter extends BasePresenter<AddNewAddressContract.View> implements AddNewAddressContract.Presenter { @Override public void validQRCode(String text) { if (!JZWalletUtil.isValidAddress(text)) { showLongToast(string(R.string.unrecognized_content)); return; } if (isViewAttached()) { getView().showAddress(text); } }  @Override void getIntentData(); @Override void loadAddressInfo(); @Override void addAddress(); @Override boolean checkAddressName(String name); @Override boolean checkAddress(String address); @Override void validQRCode(String text); }
AddNewAddressPresenter extends BasePresenter<AddNewAddressContract.View> implements AddNewAddressContract.Presenter { @Override public void validQRCode(String text) { if (!JZWalletUtil.isValidAddress(text)) { showLongToast(string(R.string.unrecognized_content)); return; } if (isViewAttached()) { getView().showAddress(text); } }  @Override void getIntentData(); @Override void loadAddressInfo(); @Override void addAddress(); @Override boolean checkAddressName(String name); @Override boolean checkAddress(String address); @Override void validQRCode(String text);  }