[android] - move all layer, source, image, light and transition configurations to style.java

This commit is contained in:
Tobrun
2018-11-08 13:39:26 +01:00
committed by Tobrun
parent 1374535e63
commit d68dfe0551
53 changed files with 536 additions and 538 deletions

View File

@@ -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);