diff options
author | tobrun <tobrun.van.nuland@gmail.com> | 2019-08-01 10:46:16 +0300 |
---|---|---|
committer | tobrun <tobrun.van.nuland@gmail.com> | 2019-08-01 10:46:16 +0300 |
commit | c995d6b7b5817fb7ec4584c12c92025c2dd028cf (patch) | |
tree | 6b8642d92a6eed1d018161748c98530dfa0a959f | |
parent | 87ec08d992ed8dd6407989bbf3d1638bf7108197 (diff) | |
download | qtlocation-mapboxgl-upstream/tvn-fixup-test.tar.gz |
[android] use relaxed mockk of contextupstream/tvn-fixup-test
-rw-r--r-- | platform/android/MapboxGLAndroidSDK/src/test/java/com/mapbox/mapboxsdk/location/LocationAnimatorCoordinatorTest.kt | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/platform/android/MapboxGLAndroidSDK/src/test/java/com/mapbox/mapboxsdk/location/LocationAnimatorCoordinatorTest.kt b/platform/android/MapboxGLAndroidSDK/src/test/java/com/mapbox/mapboxsdk/location/LocationAnimatorCoordinatorTest.kt index 9039f8bb69..5db58cf093 100644 --- a/platform/android/MapboxGLAndroidSDK/src/test/java/com/mapbox/mapboxsdk/location/LocationAnimatorCoordinatorTest.kt +++ b/platform/android/MapboxGLAndroidSDK/src/test/java/com/mapbox/mapboxsdk/location/LocationAnimatorCoordinatorTest.kt @@ -1,6 +1,7 @@ package com.mapbox.mapboxsdk.location import android.animation.Animator +import android.content.Context import android.location.Location import android.util.SparseArray import android.view.animation.LinearInterpolator @@ -37,8 +38,9 @@ class LocationAnimatorCoordinatorTest { @Before fun setUp() { - locationComponentOptions = LocationComponentOptions.builder( - RuntimeEnvironment.systemContext) + val context: Context = mockk(relaxed = true) + + locationComponentOptions = LocationComponentOptions.builder(context) .pulsingCircleEnabled(true) .build() |