@Test public void hideProgress_shouldEnableMap() throws Exception { FragmentTestUtil.startFragment(mapFragment); mapFragment.getView().findViewById(R.id.map).setClickable(false); mapFragment.hideProgress(); assertThat(mapFragment.getView().findViewById(R.id.map)).isClickable(); }
@Test public void hideProgress_shouldHideProgressView() throws Exception { FragmentTestUtil.startFragment(mapFragment); mapFragment.showProgress(); mapFragment.hideProgress(); assertThat(mapFragment.getView().findViewById(R.id.progress)).isNotVisible(); }