diff options
author | Langston Smith <langston.smith@mapbox.com> | 2019-01-30 09:15:15 -0800 |
---|---|---|
committer | Langston Smith <langston.smith@mapbox.com> | 2019-01-30 09:15:15 -0800 |
commit | 0f9d6a20ae7128a91499f38984e9f57eeeaff02b (patch) | |
tree | d75a37fa621a60d8f038582e556b4718aee14aed | |
parent | b968931d211966e05e1d0f8d3e2c47b6bdf4a70d (diff) | |
download | qtlocation-mapboxgl-0f9d6a20ae7128a91499f38984e9f57eeeaff02b.tar.gz |
[android] tweak to test after lukasz review
-rw-r--r-- | platform/android/MapboxGLAndroidSDK/src/test/java/com/mapbox/mapboxsdk/location/LocationComponentTest.kt | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/platform/android/MapboxGLAndroidSDK/src/test/java/com/mapbox/mapboxsdk/location/LocationComponentTest.kt b/platform/android/MapboxGLAndroidSDK/src/test/java/com/mapbox/mapboxsdk/location/LocationComponentTest.kt index d380855b6c..305dbdb0cb 100644 --- a/platform/android/MapboxGLAndroidSDK/src/test/java/com/mapbox/mapboxsdk/location/LocationComponentTest.kt +++ b/platform/android/MapboxGLAndroidSDK/src/test/java/com/mapbox/mapboxsdk/location/LocationComponentTest.kt @@ -100,20 +100,6 @@ class LocationComponentTest { @Test fun activateWithDefaultLocationEngineRequestAndOptionsTest() { locationComponent.activateLocationComponent(context, mockk(), true, locationEngineRequest, locationComponentOptions) - - Assert.assertEquals(locationEngineRequest, locationComponent.locationEngineRequest) - - doReturn(mock(TypedArray::class.java)).`when`(context) - .obtainStyledAttributes(R.style.mapbox_LocationComponent, R.styleable.mapbox_LocationComponent) - - val resources = mock(Resources::class.java) - - doReturn(resources).`when`(context).resources - doReturn(0f).`when`(resources) - .getDimension(R.dimen.mapbox_locationComponentTrackingMultiFingerMoveThreshold) - doReturn(0f).`when`(resources) - .getDimension(R.dimen.mapbox_locationComponentTrackingMultiFingerMoveThreshold) - locationComponent.activateLocationComponent(context, mockk(), true, locationEngineRequest, locationComponentOptions) Assert.assertEquals(locationEngineRequest, locationComponent.locationEngineRequest) } |