@Test public void onDetach_shouldShowActionbar() throws Exception { fragment.onDetach(); assertThat(activity.actionBarIsEnabled()).isTrue(); assertThat(activity.getSupportActionBar().isShowing()).isTrue(); }
@Test public void onViewCreated_shouldHideActionBar() throws Exception { activity.getSupportActionBar().show(); fragment.onViewCreated(fragment.getView(), null); assertThat(activity.getSupportActionBar().isShowing()).isFalse(); }
@Test public void onStart_shouldHideActionbar() throws Exception { assertThat(activity.getSupportActionBar().isShowing()).isFalse(); }