@Test public void shouldALViewArchEmptyDisplayed() { alRequisitionPresenter.rnRForm = null; alRequisitionPresenter.updateFormUI(); assertNull(alRequisitionPresenter.alReportViewModel); }
@Override public void updateFormUI() { if (rnRForm != null) { alReportViewModel = new ALReportViewModel(rnRForm); view.refreshRequisitionForm(rnRForm); view.setProcessButtonName(rnRForm.isDraft() ? context.getResources().getString(R.string.btn_submit) : context.getResources().getString(R.string.btn_complete)); } }
ALRequisitionPresenter extends BaseRequisitionPresenter { @Override public void updateFormUI() { if (rnRForm != null) { alReportViewModel = new ALReportViewModel(rnRForm); view.refreshRequisitionForm(rnRForm); view.setProcessButtonName(rnRForm.isDraft() ? context.getResources().getString(R.string.btn_submit) : context.getResources().getString(R.string.btn_complete)); } } }
ALRequisitionPresenter extends BaseRequisitionPresenter { @Override public void updateFormUI() { if (rnRForm != null) { alReportViewModel = new ALReportViewModel(rnRForm); view.refreshRequisitionForm(rnRForm); view.setProcessButtonName(rnRForm.isDraft() ? context.getResources().getString(R.string.btn_submit) : context.getResources().getString(R.string.btn_complete)); } }  }
ALRequisitionPresenter extends BaseRequisitionPresenter { @Override public void updateFormUI() { if (rnRForm != null) { alReportViewModel = new ALReportViewModel(rnRForm); view.refreshRequisitionForm(rnRForm); view.setProcessButtonName(rnRForm.isDraft() ? context.getResources().getString(R.string.btn_submit) : context.getResources().getString(R.string.btn_complete)); } }  @Override void attachView(BaseView baseView); @Override void loadData(long formId, Date periodEndDate); @Override void updateUIAfterSubmit(); @Override void updateFormUI(); Observable<Void> getSaveFormObservable(); boolean isComplete(); void setViewModels(); }
ALRequisitionPresenter extends BaseRequisitionPresenter { @Override public void updateFormUI() { if (rnRForm != null) { alReportViewModel = new ALReportViewModel(rnRForm); view.refreshRequisitionForm(rnRForm); view.setProcessButtonName(rnRForm.isDraft() ? context.getResources().getString(R.string.btn_submit) : context.getResources().getString(R.string.btn_complete)); } }  @Override void attachView(BaseView baseView); @Override void loadData(long formId, Date periodEndDate); @Override void updateUIAfterSubmit(); @Override void updateFormUI(); Observable<Void> getSaveFormObservable(); boolean isComplete(); void setViewModels(); public ALReportViewModel alReportViewModel; }