@Test public void shouldShowErrorWhenConsultationNumbersIsEmpty() throws Exception { view.etExternalConsultationsPerformed.setText(""); view.validate(); assertThat(view.etExternalConsultationsPerformed.getError().toString()).isEqualTo("Invalid Input"); }
public boolean validate() { return ViewUtil.checkEditTextEmpty(etExternalConsultationsPerformed); }
ViaReportConsultationNumberView extends LinearLayout { public boolean validate() { return ViewUtil.checkEditTextEmpty(etExternalConsultationsPerformed); } }
ViaReportConsultationNumberView extends LinearLayout { public boolean validate() { return ViewUtil.checkEditTextEmpty(etExternalConsultationsPerformed); } ViaReportConsultationNumberView(Context context);  ViaReportConsultationNumberView(Context context, AttributeSet attrs); }
ViaReportConsultationNumberView extends LinearLayout { public boolean validate() { return ViewUtil.checkEditTextEmpty(etExternalConsultationsPerformed); } ViaReportConsultationNumberView(Context context);  ViaReportConsultationNumberView(Context context, AttributeSet attrs); @Override void setEnabled(boolean enabled); void setConsultationNumbers(VIARequisitionPresenter presenter); void addTextChangedListener(); void initUI(); boolean validate(); String getValue(); void setEmergencyRnrHeader(); void setEditClickListener(OnClickListener listener); void refreshNormalRnrConsultationView(VIARequisitionPresenter presenter); }
ViaReportConsultationNumberView extends LinearLayout { public boolean validate() { return ViewUtil.checkEditTextEmpty(etExternalConsultationsPerformed); } ViaReportConsultationNumberView(Context context);  ViaReportConsultationNumberView(Context context, AttributeSet attrs); @Override void setEnabled(boolean enabled); void setConsultationNumbers(VIARequisitionPresenter presenter); void addTextChangedListener(); void initUI(); boolean validate(); String getValue(); void setEmergencyRnrHeader(); void setEditClickListener(OnClickListener listener); void refreshNormalRnrConsultationView(VIARequisitionPresenter presenter);  }