MMIARequisitionFragment extends BaseReportFragment implements MMIARequisitionPresenter.MMIARequisitionView { protected void initUI() { scrollView.setVisibility(View.INVISIBLE); if (isHistoryForm()) { scrollView.setDescendantFocusability(ViewGroup.FOCUS_BLOCK_DESCENDANTS); actionPanelView.setVisibility(View.GONE); etComment.setEnabled(false); } else { scrollView.setDescendantFocusability(ViewGroup.FOCUS_AFTER_DESCENDANTS); actionPanelView.setVisibility(View.VISIBLE); etComment.setEnabled(true); } disableFreezeHeaderScroll(); initActionBarHeight(); setRegimenListener(); }  @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; }
@Test public void shouldShowSaveAndCompleteButtonWhenFormIsEditable() { mmiaRequisitionFragment.initUI(); assertThat(mmiaRequisitionFragment.actionPanelView.getVisibility()).isEqualTo(View.VISIBLE); }