Esempio n. 1
0
 @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();
 }
Esempio n. 2
0
 @Test
 public void hideProgress_shouldHideProgressView() throws Exception {
   FragmentTestUtil.startFragment(mapFragment);
   mapFragment.showProgress();
   mapFragment.hideProgress();
   assertThat(mapFragment.getView().findViewById(R.id.progress)).isNotVisible();
 }