@Test public void onDestroy_shouldHideLocationMarker() throws Exception { fragment.onDestroy(); assertThat( fragment .getMapFragment() .getMap() .layers() .contains(fragment.getMapFragment().getLocationMarkerLayer())) .isTrue(); }
@Test public void setRouteTo_shouldClearMap() throws Exception { fragment.getMapFragment().addPoi(getTestSimpleFeature()); fragment.createRouteToDestination(); assertThat(fragment.getMapFragment().getPoiLayer().size()).isEqualTo(0); }