summaryrefslogtreecommitdiff
path: root/platform/android/MapboxGLAndroidSDK/src/test/java/com/mapbox/mapboxsdk/location/LocationLayerControllerTest.java
diff options
context:
space:
mode:
authorTobrun <tobrun.van.nuland@gmail.com>2018-11-08 13:39:26 +0100
committerTobrun <tobrun@mapbox.com>2018-12-10 16:59:50 +0100
commitd68dfe0551d75fde860f97a94f57fea487afd55e (patch)
tree4f321700db70da693e76153bb66cff6273e7b681 /platform/android/MapboxGLAndroidSDK/src/test/java/com/mapbox/mapboxsdk/location/LocationLayerControllerTest.java
parent1374535e632c8ff40de15adacab1e1b0435cc66c (diff)
downloadqtlocation-mapboxgl-d68dfe0551d75fde860f97a94f57fea487afd55e.tar.gz
[android] - move all layer, source, image, light and transition configurations to style.java
Diffstat (limited to 'platform/android/MapboxGLAndroidSDK/src/test/java/com/mapbox/mapboxsdk/location/LocationLayerControllerTest.java')
-rw-r--r--platform/android/MapboxGLAndroidSDK/src/test/java/com/mapbox/mapboxsdk/location/LocationLayerControllerTest.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/platform/android/MapboxGLAndroidSDK/src/test/java/com/mapbox/mapboxsdk/location/LocationLayerControllerTest.java b/platform/android/MapboxGLAndroidSDK/src/test/java/com/mapbox/mapboxsdk/location/LocationLayerControllerTest.java
index 51fdf812e6..d301c5cbd2 100644
--- a/platform/android/MapboxGLAndroidSDK/src/test/java/com/mapbox/mapboxsdk/location/LocationLayerControllerTest.java
+++ b/platform/android/MapboxGLAndroidSDK/src/test/java/com/mapbox/mapboxsdk/location/LocationLayerControllerTest.java
@@ -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);