Exemplo n.º 1
0
 @Test
 public void onDestroy_shouldHideLocationMarker() throws Exception {
   fragment.onDestroy();
   assertThat(
           fragment
               .getMapFragment()
               .getMap()
               .layers()
               .contains(fragment.getMapFragment().getLocationMarkerLayer()))
       .isTrue();
 }
Exemplo n.º 2
0
 @Test(expected = IllegalArgumentException.class)
 public void onDestroy_shouldUnregisterWithEventBus() throws Exception {
   fragment.onDestroy();
   bus.unregister(fragment);
 }