Ejemplo n.º 1
0
 @Test
 public void clearMarkers_shouldEmptyMapPois() throws Exception {
   mapFragment.addPoi(getTestSimpleFeature());
   mapFragment.addPoi(getTestSimpleFeature());
   ItemizedLayer<MarkerItem> poiMarkerLayer = mapFragment.getPoiLayer();
   mapFragment.clearMarkers();
   assertThat(poiMarkerLayer.size()).isZero();
 }
Ejemplo n.º 2
0
 @Test
 public void onPause_shouldEmptyPoiMarkers() throws Exception {
   mapFragment.addPoi(getTestSimpleFeature());
   mapFragment.addPoi(getTestSimpleFeature());
   ItemizedLayer<MarkerItem> poiMarkerLayer = mapFragment.getPoiLayer();
   mapFragment.onPause();
   assertThat(poiMarkerLayer.size()).isEqualTo(0);
 }