Exemplo 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();
 }
Exemplo 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();
 }