@Test public void testSelectAddress(){ presenter.selectAddress(0); assertNull(ShadowToast.getTextOfLatestToast()); }
@Override public void selectAddress(int position) { if (addressEntityList != null && addressEntityList.size() > position) { CommonUtil.copyTextToClipboard(currentActivity(), addressEntityList.get(position).getAddress()); } }
AddressBookPresenter extends BasePresenter<AddressBookContract.View> implements AddressBookContract.Presenter { @Override public void selectAddress(int position) { if (addressEntityList != null && addressEntityList.size() > position) { CommonUtil.copyTextToClipboard(currentActivity(), addressEntityList.get(position).getAddress()); } } }
AddressBookPresenter extends BasePresenter<AddressBookContract.View> implements AddressBookContract.Presenter { @Override public void selectAddress(int position) { if (addressEntityList != null && addressEntityList.size() > position) { CommonUtil.copyTextToClipboard(currentActivity(), addressEntityList.get(position).getAddress()); } }  }
AddressBookPresenter extends BasePresenter<AddressBookContract.View> implements AddressBookContract.Presenter { @Override public void selectAddress(int position) { if (addressEntityList != null && addressEntityList.size() > position) { CommonUtil.copyTextToClipboard(currentActivity(), addressEntityList.get(position).getAddress()); } }  List<Address> getAddressEntityList(); void setAddressEntityList(List<Address> addressEntityList); @Override void fetchAddressList(); @Override void deleteAddress(int position); @Override void editAddress(int position); @Override void selectAddress(int position); }
AddressBookPresenter extends BasePresenter<AddressBookContract.View> implements AddressBookContract.Presenter { @Override public void selectAddress(int position) { if (addressEntityList != null && addressEntityList.size() > position) { CommonUtil.copyTextToClipboard(currentActivity(), addressEntityList.get(position).getAddress()); } }  List<Address> getAddressEntityList(); void setAddressEntityList(List<Address> addressEntityList); @Override void fetchAddressList(); @Override void deleteAddress(int position); @Override void editAddress(int position); @Override void selectAddress(int position);  }