[android] - move all layer, source, image, light and transition configurations to style.java
This commit is contained in:
@@ -302,7 +302,7 @@ public class LocationLayerControllerTest {
|
||||
public void onNewLatLngValue_locationFeatureIsUpdated() {
|
||||
GeoJsonSource locationSource = mock(GeoJsonSource.class);
|
||||
MapboxMap mapboxMap = mock(MapboxMap.class);
|
||||
when(mapboxMap.getSourceAs(LOCATION_SOURCE)).thenReturn(locationSource);
|
||||
when(mapboxMap.getStyle().getSourceAs(LOCATION_SOURCE)).thenReturn(locationSource);
|
||||
LayerSourceProvider sourceProvider = buildLayerProvider();
|
||||
when(sourceProvider.generateSource(any(Feature.class))).thenReturn(locationSource);
|
||||
LayerBitmapProvider bitmapProvider = mock(LayerBitmapProvider.class);
|
||||
@@ -322,7 +322,7 @@ public class LocationLayerControllerTest {
|
||||
public void onNewGpsBearingValue_locationFeatureIsUpdated() {
|
||||
GeoJsonSource locationSource = mock(GeoJsonSource.class);
|
||||
MapboxMap mapboxMap = mock(MapboxMap.class);
|
||||
when(mapboxMap.getSourceAs(LOCATION_SOURCE)).thenReturn(locationSource);
|
||||
when(mapboxMap.getStyle().getSourceAs(LOCATION_SOURCE)).thenReturn(locationSource);
|
||||
LayerSourceProvider sourceProvider = buildLayerProvider();
|
||||
when(sourceProvider.generateSource(any(Feature.class))).thenReturn(locationSource);
|
||||
LayerBitmapProvider bitmapProvider = mock(LayerBitmapProvider.class);
|
||||
@@ -343,7 +343,7 @@ public class LocationLayerControllerTest {
|
||||
public void onNewGpsBearingValue_updateIgnoredWithInvalidRenderMode() {
|
||||
GeoJsonSource locationSource = mock(GeoJsonSource.class);
|
||||
MapboxMap mapboxMap = mock(MapboxMap.class);
|
||||
when(mapboxMap.getSourceAs(LOCATION_SOURCE)).thenReturn(locationSource);
|
||||
when(mapboxMap.getStyle().getSourceAs(LOCATION_SOURCE)).thenReturn(locationSource);
|
||||
LayerSourceProvider sourceProvider = buildLayerProvider();
|
||||
when(sourceProvider.generateSource(any(Feature.class))).thenReturn(locationSource);
|
||||
LayerBitmapProvider bitmapProvider = mock(LayerBitmapProvider.class);
|
||||
@@ -364,7 +364,7 @@ public class LocationLayerControllerTest {
|
||||
public void onNewCompassBearingValue_locationFeatureIsUpdated() {
|
||||
GeoJsonSource locationSource = mock(GeoJsonSource.class);
|
||||
MapboxMap mapboxMap = mock(MapboxMap.class);
|
||||
when(mapboxMap.getSourceAs(LOCATION_SOURCE)).thenReturn(locationSource);
|
||||
when(mapboxMap.getStyle().getSourceAs(LOCATION_SOURCE)).thenReturn(locationSource);
|
||||
LayerSourceProvider sourceProvider = buildLayerProvider();
|
||||
when(sourceProvider.generateSource(any(Feature.class))).thenReturn(locationSource);
|
||||
LayerBitmapProvider bitmapProvider = mock(LayerBitmapProvider.class);
|
||||
@@ -385,7 +385,7 @@ public class LocationLayerControllerTest {
|
||||
public void onNewCompassBearingValue_updateIgnoredWithInvalidRenderMode() {
|
||||
GeoJsonSource locationSource = mock(GeoJsonSource.class);
|
||||
MapboxMap mapboxMap = mock(MapboxMap.class);
|
||||
when(mapboxMap.getSourceAs(LOCATION_SOURCE)).thenReturn(locationSource);
|
||||
when(mapboxMap.getStyle().getSourceAs(LOCATION_SOURCE)).thenReturn(locationSource);
|
||||
LayerSourceProvider sourceProvider = buildLayerProvider();
|
||||
when(sourceProvider.generateSource(any(Feature.class))).thenReturn(locationSource);
|
||||
LayerBitmapProvider bitmapProvider = mock(LayerBitmapProvider.class);
|
||||
@@ -406,7 +406,7 @@ public class LocationLayerControllerTest {
|
||||
public void onNewAccuracyRadiusValue_locationFeatureIsUpdated() {
|
||||
GeoJsonSource locationSource = mock(GeoJsonSource.class);
|
||||
MapboxMap mapboxMap = mock(MapboxMap.class);
|
||||
when(mapboxMap.getSourceAs(LOCATION_SOURCE)).thenReturn(locationSource);
|
||||
when(mapboxMap.getStyle().getSourceAs(LOCATION_SOURCE)).thenReturn(locationSource);
|
||||
LayerSourceProvider sourceProvider = buildLayerProvider();
|
||||
when(sourceProvider.generateSource(any(Feature.class))).thenReturn(locationSource);
|
||||
LayerBitmapProvider bitmapProvider = mock(LayerBitmapProvider.class);
|
||||
@@ -426,7 +426,7 @@ public class LocationLayerControllerTest {
|
||||
public void onNewAccuracyRadiusValue_updateIgnoredWithInvalidRenderMode() {
|
||||
GeoJsonSource locationSource = mock(GeoJsonSource.class);
|
||||
MapboxMap mapboxMap = mock(MapboxMap.class);
|
||||
when(mapboxMap.getSourceAs(LOCATION_SOURCE)).thenReturn(locationSource);
|
||||
when(mapboxMap.getStyle().getSourceAs(LOCATION_SOURCE)).thenReturn(locationSource);
|
||||
LayerSourceProvider sourceProvider = buildLayerProvider();
|
||||
when(sourceProvider.generateSource(any(Feature.class))).thenReturn(locationSource);
|
||||
LayerBitmapProvider bitmapProvider = mock(LayerBitmapProvider.class);
|
||||
|
||||
Reference in New Issue
Block a user