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