Esempio n. 1
0
 @Test
 public void shouldShowLocationMarker() throws Exception {
   mapFragment.getMap().layers().remove(mapFragment.getLocationMarkerLayer());
   mapFragment.showLocationMarker();
   assertThat(mapFragment.getMap().layers().contains(mapFragment.getLocationMarkerLayer()))
       .isTrue();
 }
Esempio n. 2
0
 @Test
 public void showLocationMarker_shouldNotCrashIfLayersIsNull() throws Exception {
   mapFragment.setAct(new BaseActivityWithNullLayers());
   mapFragment.showLocationMarker();
 }