@Test public void shouldShowValidationAlertWhenMethodCalled() { mmiaRequisitionFragment.showValidationAlert(); SimpleDialogFragment fragment = (SimpleDialogFragment) mmiaRequisitionFragment.getFragmentManager().findFragmentByTag("not_match_dialog"); assertThat(fragment).isNotNull(); final Dialog dialog = fragment.getDialog(); assertThat(dialog).isNotNull(); }
@Override public void showValidationAlert() { DialogFragment dialogFragment = SimpleDialogFragment.newInstance(null, getString(R.string.msg_regime_total_and_patient_total_not_match), getString(R.string.btn_ok), TAG_MISMATCH); dialogFragment.show(getFragmentManager(), "not_match_dialog"); }
MMIARequisitionFragment extends BaseReportFragment implements MMIARequisitionPresenter.MMIARequisitionView { @Override public void showValidationAlert() { DialogFragment dialogFragment = SimpleDialogFragment.newInstance(null, getString(R.string.msg_regime_total_and_patient_total_not_match), getString(R.string.btn_ok), TAG_MISMATCH); dialogFragment.show(getFragmentManager(), "not_match_dialog"); } }
MMIARequisitionFragment extends BaseReportFragment implements MMIARequisitionPresenter.MMIARequisitionView { @Override public void showValidationAlert() { DialogFragment dialogFragment = SimpleDialogFragment.newInstance(null, getString(R.string.msg_regime_total_and_patient_total_not_match), getString(R.string.btn_ok), TAG_MISMATCH); dialogFragment.show(getFragmentManager(), "not_match_dialog"); }  }
MMIARequisitionFragment extends BaseReportFragment implements MMIARequisitionPresenter.MMIARequisitionView { @Override public void showValidationAlert() { DialogFragment dialogFragment = SimpleDialogFragment.newInstance(null, getString(R.string.msg_regime_total_and_patient_total_not_match), getString(R.string.btn_ok), TAG_MISMATCH); dialogFragment.show(getFragmentManager(), "not_match_dialog"); }  @Override void onCreate(Bundle savedInstanceState); @Override View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState); @Override void onViewCreated(View view, Bundle savedInstanceState); @Override void refreshRequisitionForm(RnRForm form); @NonNull Subscriber<Void> getOnSavedSubscriber(); @Override void showValidationAlert(); @Override void setProcessButtonName(String buttonName); @Override void completeSuccess(); @NonNull String getSignatureDialogTitle(); @Override void onActivityResult(int requestCode, int resultCode, Intent data); }
MMIARequisitionFragment extends BaseReportFragment implements MMIARequisitionPresenter.MMIARequisitionView { @Override public void showValidationAlert() { DialogFragment dialogFragment = SimpleDialogFragment.newInstance(null, getString(R.string.msg_regime_total_and_patient_total_not_match), getString(R.string.btn_ok), TAG_MISMATCH); dialogFragment.show(getFragmentManager(), "not_match_dialog"); }  @Override void onCreate(Bundle savedInstanceState); @Override View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState); @Override void onViewCreated(View view, Bundle savedInstanceState); @Override void refreshRequisitionForm(RnRForm form); @NonNull Subscriber<Void> getOnSavedSubscriber(); @Override void showValidationAlert(); @Override void setProcessButtonName(String buttonName); @Override void completeSuccess(); @NonNull String getSignatureDialogTitle(); @Override void onActivityResult(int requestCode, int resultCode, Intent data); static final int REQUEST_FOR_CUSTOM_REGIME; }