Пример #1
0
 @Test
 public void onDetach_shouldShowActionbar() throws Exception {
   fragment.onDetach();
   assertThat(activity.actionBarIsEnabled()).isTrue();
   assertThat(activity.getSupportActionBar().isShowing()).isTrue();
 }
Пример #2
0
 @Test
 public void onViewCreated_shouldHideActionBar() throws Exception {
   activity.getSupportActionBar().show();
   fragment.onViewCreated(fragment.getView(), null);
   assertThat(activity.getSupportActionBar().isShowing()).isFalse();
 }
Пример #3
0
 @Test
 public void onStart_shouldHideActionbar() throws Exception {
   assertThat(activity.getSupportActionBar().isShowing()).isFalse();
 }