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