summaryrefslogtreecommitdiff
path: root/platform/android/MapboxGLAndroidSDKTestApp/src/androidTest/java/com/mapbox/mapboxsdk/location/LocationComponentTest.kt
diff options
context:
space:
mode:
Diffstat (limited to 'platform/android/MapboxGLAndroidSDKTestApp/src/androidTest/java/com/mapbox/mapboxsdk/location/LocationComponentTest.kt')
-rw-r--r--platform/android/MapboxGLAndroidSDKTestApp/src/androidTest/java/com/mapbox/mapboxsdk/location/LocationComponentTest.kt21
1 files changed, 0 insertions, 21 deletions
diff --git a/platform/android/MapboxGLAndroidSDKTestApp/src/androidTest/java/com/mapbox/mapboxsdk/location/LocationComponentTest.kt b/platform/android/MapboxGLAndroidSDKTestApp/src/androidTest/java/com/mapbox/mapboxsdk/location/LocationComponentTest.kt
index 444b478219..adb01241c4 100644
--- a/platform/android/MapboxGLAndroidSDKTestApp/src/androidTest/java/com/mapbox/mapboxsdk/location/LocationComponentTest.kt
+++ b/platform/android/MapboxGLAndroidSDKTestApp/src/androidTest/java/com/mapbox/mapboxsdk/location/LocationComponentTest.kt
@@ -77,7 +77,6 @@ class LocationComponentTest : BaseActivityTest() {
assertThat(locationEngine, notNullValue())
uiController.loopMainThreadForAtLeast(MAP_CONNECTION_DELAY)
- assertThat(locationEngine?.isConnected, `is`(true))
}
}
@@ -107,7 +106,6 @@ class LocationComponentTest : BaseActivityTest() {
assertThat(componentOptions, notNullValue())
uiController.loopMainThreadForAtLeast(MAP_CONNECTION_DELAY)
- assertThat(locationEngine?.isConnected, `is`(true))
assertThat(componentOptions?.accuracyAlpha(), `is`(.5f))
assertThat(componentOptions?.accuracyColor(), `is`(Color.BLUE))
}
@@ -1174,25 +1172,6 @@ class LocationComponentTest : BaseActivityTest() {
executeComponentTest(componentAction)
}
- @Test
- fun defaultLocationEngine_deactivatedWhenDestroyed() {
- val componentAction = object : LocationComponentAction.OnPerformLocationComponentAction {
- override fun onLocationComponentAction(component: LocationComponent, mapboxMap: MapboxMap,
- uiController: UiController, context: Context) {
- component.activateLocationComponent(context)
- component.isLocationComponentEnabled = true
- uiController.loopMainThreadForAtLeast(MAP_CONNECTION_DELAY)
- assertThat(component.locationEngine?.isConnected, `is`(true))
-
- component.onStop()
- component.onDestroy()
- assertThat(component.locationEngine?.isConnected, `is`(false))
- }
- }
-
- executeComponentTest(componentAction)
- }
-
@After
override fun afterTest() {
super.afterTest()