When using a theme based on Theme.Holo.Light.NoActionBar, I expect assertThat(getActivity().getActionBar()).isNotShowing(); to pass. An error is triggered instead: expecting actual not to be null.
isNotShowing and isNull are different things. When you use a theme like .NoTitleBar the action bar is always null whereas calling hide() on a non-null action bar qualifies as not showing.
When using a theme based on
Theme.Holo.Light.NoActionBar
, I expectassertThat(getActivity().getActionBar()).isNotShowing();
to pass. An error is triggered instead:expecting actual not to be null
.