summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLangston Smith <langston.smith@mapbox.com>2019-01-30 09:15:15 -0800
committerLangston Smith <langston.smith@mapbox.com>2019-01-30 09:15:15 -0800
commit0f9d6a20ae7128a91499f38984e9f57eeeaff02b (patch)
treed75a37fa621a60d8f038582e556b4718aee14aed
parentb968931d211966e05e1d0f8d3e2c47b6bdf4a70d (diff)
downloadqtlocation-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.kt14
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)
}