[android] - remove deprecated OnMapChange interface and implementation

This commit is contained in:
Tobrun
2018-10-31 12:20:02 +01:00
committed by Tobrun
parent 90f4d7f63a
commit cd90f878cf
8 changed files with 87 additions and 437 deletions

View File

@@ -34,7 +34,7 @@ public class AnnotationManagerTest {
Polygons polygons = new PolygonContainer(aNativeMapView, annotationsArray);
Polylines polylines = new PolylineContainer(aNativeMapView, annotationsArray);
ShapeAnnotations shapeAnnotations = new ShapeAnnotationContainer(aNativeMapView, annotationsArray);
AnnotationManager annotationManager = new AnnotationManager(aNativeMapView, aMapView, annotationsArray,
AnnotationManager annotationManager = new AnnotationManager(aMapView, annotationsArray,
aMarkerViewManager, aIconManager, annotations, markers, polygons, polylines, shapeAnnotations);
Marker aMarker = mock(Marker.class);
long aId = 5L;
@@ -61,7 +61,7 @@ public class AnnotationManagerTest {
Polygons polygons = new PolygonContainer(aNativeMapView, annotationsArray);
Polylines polylines = new PolylineContainer(aNativeMapView, annotationsArray);
ShapeAnnotations shapeAnnotations = new ShapeAnnotationContainer(aNativeMapView, annotationsArray);
AnnotationManager annotationManager = new AnnotationManager(aNativeMapView, aMapView, annotationsArray,
AnnotationManager annotationManager = new AnnotationManager(aMapView, annotationsArray,
aMarkerViewManager, aIconManager, annotations, markers, polygons, polylines, shapeAnnotations);
long firstId = 1L;
long secondId = 2L;

View File

@@ -22,7 +22,8 @@ public class MapboxMapTest {
mock(Projection.class),
mock(MapboxMap.OnGesturesManagerInteractionListener.class),
mock(AnnotationManager.class),
mock(CameraChangeDispatcher.class));
mock(CameraChangeDispatcher.class),
mock(MapChangeReceiver.class));
}
@Test(expected = IllegalArgumentException.class)