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