[android] rename required TransitionOptions field

This commit is contained in:
Łukasz Paczos
2019-01-21 17:39:14 +01:00
committed by Łukasz Paczos
parent a4b814dd16
commit 9604953d90
4 changed files with 13 additions and 4 deletions

View File

@@ -10,6 +10,7 @@ import com.mapbox.mapboxsdk.geometry.LatLng
import com.mapbox.mapboxsdk.geometry.LatLngBounds
import com.mapbox.mapboxsdk.geometry.ProjectedMeters
import com.mapbox.mapboxsdk.maps.renderer.MapRenderer
import com.mapbox.mapboxsdk.style.layers.TransitionOptions
import com.mapbox.mapboxsdk.testapp.utils.TestConstants
import junit.framework.Assert.assertEquals
import org.junit.Before
@@ -319,6 +320,14 @@ class NativeMapViewTest {
assertEquals("Zoom should match", expected.zoom, actual.zoom, TestConstants.ZOOM_DELTA)
}
@Test
@UiThreadTest
fun testTransitionOptions() {
val transitionOptions = TransitionOptions(500, 500)
nativeMapView.transitionOptions = transitionOptions
assertEquals(transitionOptions, nativeMapView.transitionOptions)
}
class DummyRenderer(context: Context) : MapRenderer(context, null) {
override fun requestRender() {