List of usage examples for android.app DialogFragment getArguments
final public Bundle getArguments()
From source file:org.openlmis.core.view.fragment.VIARequisitionFragmentTest.java
@Test public void shouldShowSubmitSignatureDialog() { VIARequisitionFragment.showSignDialog(true); DialogFragment fragment = (DialogFragment) (VIARequisitionFragment.getActivity().getFragmentManager() .findFragmentByTag("signature_dialog")); assertThat(fragment).isNotNull();/*from w w w . j av a2s . c om*/ Dialog dialog = fragment.getDialog(); assertThat(dialog).isNotNull(); String alertMessage = VIARequisitionFragment.getString(R.string.msg_via_submit_signature); assertThat(fragment.getArguments().getString("title")).isEqualTo(alertMessage); }
From source file:org.openlmis.core.view.fragment.VIARequisitionFragmentTest.java
@Test public void shouldShowApproveSignatureDialog() { VIARequisitionFragment.showSignDialog(false); DialogFragment fragment = (DialogFragment) (VIARequisitionFragment.getActivity().getFragmentManager() .findFragmentByTag("signature_dialog")); assertThat(fragment).isNotNull();//from w ww . j a v a 2s. co m Dialog dialog = fragment.getDialog(); assertThat(dialog).isNotNull(); String alertMessage = VIARequisitionFragment.getString(R.string.msg_approve_signature_via); assertThat(fragment.getArguments().getString("title")).isEqualTo(alertMessage); }