diff options
Diffstat (limited to 'platform/android/MapboxGLAndroidSDK/src/test/java/com/mapbox/mapboxsdk/maps/StyleTest.kt')
-rw-r--r-- | platform/android/MapboxGLAndroidSDK/src/test/java/com/mapbox/mapboxsdk/maps/StyleTest.kt | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/platform/android/MapboxGLAndroidSDK/src/test/java/com/mapbox/mapboxsdk/maps/StyleTest.kt b/platform/android/MapboxGLAndroidSDK/src/test/java/com/mapbox/mapboxsdk/maps/StyleTest.kt index 1f5d7d8a32..ef30d46a7f 100644 --- a/platform/android/MapboxGLAndroidSDK/src/test/java/com/mapbox/mapboxsdk/maps/StyleTest.kt +++ b/platform/android/MapboxGLAndroidSDK/src/test/java/com/mapbox/mapboxsdk/maps/StyleTest.kt @@ -37,7 +37,7 @@ class StyleTest { fun testFromUrl() { val builder = Style.Builder().fromUrl(Style.MAPBOX_STREETS) mapboxMap.setStyle(builder) - verify(exactly = 1) { nativeMapView.styleUrl = Style.MAPBOX_STREETS } + verify(exactly = 1) { nativeMapView.styleUri = Style.MAPBOX_STREETS } } @Test @@ -119,7 +119,7 @@ class StyleTest { every { source.id } returns "1" val builder = Style.Builder().fromUrl(Style.MAPBOX_STREETS).withSource(source) mapboxMap.setStyle(builder) - verify(exactly = 1) { nativeMapView.styleUrl = Style.MAPBOX_STREETS } + verify(exactly = 1) { nativeMapView.styleUri = Style.MAPBOX_STREETS } mapboxMap.notifyStyleLoaded() verify(exactly = 1) { nativeMapView.addSource(source) } } @@ -130,7 +130,7 @@ class StyleTest { every { layer.id } returns "1" val builder = Style.Builder().fromUrl(Style.MAPBOX_STREETS).withLayer(layer) mapboxMap.setStyle(builder) - verify(exactly = 1) { nativeMapView.styleUrl = Style.MAPBOX_STREETS } + verify(exactly = 1) { nativeMapView.styleUri = Style.MAPBOX_STREETS } mapboxMap.notifyStyleLoaded() verify(exactly = 1) { nativeMapView.addLayerBelow(layer, MapboxConstants.LAYER_ID_ANNOTATIONS) } } @@ -141,7 +141,7 @@ class StyleTest { every { layer.id } returns "1" val builder = Style.Builder().fromUrl(Style.MAPBOX_STREETS).withLayerAt(layer, 1) mapboxMap.setStyle(builder) - verify(exactly = 1) { nativeMapView.styleUrl = Style.MAPBOX_STREETS } + verify(exactly = 1) { nativeMapView.styleUri = Style.MAPBOX_STREETS } mapboxMap.notifyStyleLoaded() verify(exactly = 1) { nativeMapView.addLayerAt(layer, 1) } } @@ -152,7 +152,7 @@ class StyleTest { every { layer.id } returns "1" val builder = Style.Builder().fromUrl(Style.MAPBOX_STREETS).withLayerBelow(layer, "below") mapboxMap.setStyle(builder) - verify(exactly = 1) { nativeMapView.styleUrl = Style.MAPBOX_STREETS } + verify(exactly = 1) { nativeMapView.styleUri = Style.MAPBOX_STREETS } mapboxMap.notifyStyleLoaded() verify(exactly = 1) { nativeMapView.addLayerBelow(layer, "below") } } @@ -163,7 +163,7 @@ class StyleTest { every { layer.id } returns "1" val builder = Style.Builder().fromUrl(Style.MAPBOX_STREETS).withLayerBelow(layer, "below") mapboxMap.setStyle(builder) - verify(exactly = 1) { nativeMapView.styleUrl = Style.MAPBOX_STREETS } + verify(exactly = 1) { nativeMapView.styleUri = Style.MAPBOX_STREETS } mapboxMap.notifyStyleLoaded() verify(exactly = 1) { nativeMapView.addLayerBelow(layer, "below") } } @@ -173,7 +173,7 @@ class StyleTest { val transitionOptions = TransitionOptions(100, 200) val builder = Style.Builder().fromUrl(Style.MAPBOX_STREETS).withTransition(transitionOptions) mapboxMap.setStyle(builder) - verify(exactly = 1) { nativeMapView.styleUrl = Style.MAPBOX_STREETS } + verify(exactly = 1) { nativeMapView.styleUri = Style.MAPBOX_STREETS } mapboxMap.notifyStyleLoaded() verify(exactly = 1) { nativeMapView.transitionOptions = transitionOptions } } @@ -184,7 +184,7 @@ class StyleTest { every { callback.onStyleLoaded(any()) } answers {} val builder = Style.Builder().fromUrl(Style.MAPBOX_STREETS) mapboxMap.setStyle(builder, callback) - verify(exactly = 1) { nativeMapView.styleUrl = Style.MAPBOX_STREETS } + verify(exactly = 1) { nativeMapView.styleUri = Style.MAPBOX_STREETS } mapboxMap.notifyStyleLoaded() verify(exactly = 1) { callback.onStyleLoaded(any()) } } @@ -239,7 +239,7 @@ class StyleTest { every { source.id } returns "1" val builder = Style.Builder().fromUrl(Style.MAPBOX_STREETS).withSource(source) mapboxMap.setStyle(builder) - verify(exactly = 1) { nativeMapView.styleUrl = Style.MAPBOX_STREETS } + verify(exactly = 1) { nativeMapView.styleUri = Style.MAPBOX_STREETS } mapboxMap.notifyStyleLoaded() verify(exactly = 1) { nativeMapView.addSource(source) } verify(exactly = 1) { callback.onStyleLoaded(any()) } @@ -290,7 +290,7 @@ class StyleTest { val bitmap = Bitmap.createBitmap(1, 1, Bitmap.Config.ARGB_8888) val builder = Style.Builder().fromUrl(Style.SATELLITE).withImage("id", bitmap) mapboxMap.setStyle(builder) - verify(exactly = 1) { nativeMapView.styleUrl = Style.SATELLITE } + verify(exactly = 1) { nativeMapView.styleUri = Style.SATELLITE } verify(exactly = 0) { nativeMapView.addImages(any()) } mapboxMap.notifyStyleLoaded() verify(exactly = 1) { nativeMapView.addImages(any()) } @@ -303,7 +303,7 @@ class StyleTest { drawable.intrinsicWidth = 10 val builder = Style.Builder().fromUrl(Style.SATELLITE).withImage("id", drawable) mapboxMap.setStyle(builder) - verify(exactly = 1) { nativeMapView.styleUrl = Style.SATELLITE } + verify(exactly = 1) { nativeMapView.styleUri = Style.SATELLITE } verify(exactly = 0) { nativeMapView.addImages(any()) } mapboxMap.notifyStyleLoaded() verify(exactly = 1) { nativeMapView.addImages(any()) } |