@Test public void testLoadAddressInfo(){ presenter.loadAddressInfo(); Mockito.verify(view).setBottonBtnText(Mockito.any()); }
@Override public void loadAddressInfo() { if (isViewAttached()) { if (addressEntity != null) { getView().setAddressInfo(addressEntity); } getView().setBottonBtnText(addressEntity != null ? string(R.string.save) : string(R.string.add)); } }
AddNewAddressPresenter extends BasePresenter<AddNewAddressContract.View> implements AddNewAddressContract.Presenter { @Override public void loadAddressInfo() { if (isViewAttached()) { if (addressEntity != null) { getView().setAddressInfo(addressEntity); } getView().setBottonBtnText(addressEntity != null ? string(R.string.save) : string(R.string.add)); } } }
AddNewAddressPresenter extends BasePresenter<AddNewAddressContract.View> implements AddNewAddressContract.Presenter { @Override public void loadAddressInfo() { if (isViewAttached()) { if (addressEntity != null) { getView().setAddressInfo(addressEntity); } getView().setBottonBtnText(addressEntity != null ? string(R.string.save) : string(R.string.add)); } }  }
AddNewAddressPresenter extends BasePresenter<AddNewAddressContract.View> implements AddNewAddressContract.Presenter { @Override public void loadAddressInfo() { if (isViewAttached()) { if (addressEntity != null) { getView().setAddressInfo(addressEntity); } getView().setBottonBtnText(addressEntity != null ? string(R.string.save) : string(R.string.add)); } }  @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 loadAddressInfo() { if (isViewAttached()) { if (addressEntity != null) { getView().setAddressInfo(addressEntity); } getView().setBottonBtnText(addressEntity != null ? string(R.string.save) : string(R.string.add)); } }  @Override void getIntentData(); @Override void loadAddressInfo(); @Override void addAddress(); @Override boolean checkAddressName(String name); @Override boolean checkAddress(String address); @Override void validQRCode(String text);  }