summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortobrun <tobrun.van.nuland@gmail.com>2019-07-26 12:05:12 +0200
committertobrun <tobrun.van.nuland@gmail.com>2019-07-26 12:05:12 +0200
commit6328919046f59719279287c008d155650a3b09d1 (patch)
treec0eee566708c60f6e517e4c74e05bf08e20ad9f5
parent81ea0faba3d67de28531ff01d3a22d37c69ba1d6 (diff)
downloadqtlocation-mapboxgl-6328919046f59719279287c008d155650a3b09d1.tar.gz
[android-maps] - add context getter to EspressoTest
-rw-r--r--platform/android/MapboxGLAndroidSDKTestApp/src/androidTest/java/com/mapbox/mapboxsdk/testapp/activity/EspressoTest.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/platform/android/MapboxGLAndroidSDKTestApp/src/androidTest/java/com/mapbox/mapboxsdk/testapp/activity/EspressoTest.java b/platform/android/MapboxGLAndroidSDKTestApp/src/androidTest/java/com/mapbox/mapboxsdk/testapp/activity/EspressoTest.java
index c168bf5f2e..76de0208d7 100644
--- a/platform/android/MapboxGLAndroidSDKTestApp/src/androidTest/java/com/mapbox/mapboxsdk/testapp/activity/EspressoTest.java
+++ b/platform/android/MapboxGLAndroidSDKTestApp/src/androidTest/java/com/mapbox/mapboxsdk/testapp/activity/EspressoTest.java
@@ -1,5 +1,6 @@
package com.mapbox.mapboxsdk.testapp.activity;
+import android.content.Context;
import android.support.annotation.UiThread;
import com.mapbox.mapboxsdk.maps.MapboxMap;
import com.mapbox.mapboxsdk.maps.Style;
@@ -25,4 +26,8 @@ public class EspressoTest extends BaseTest {
mapboxMap.setStyle(new Style.Builder().fromUri("asset://streets.json"));
super.initMap(mapboxMap);
}
+
+ public Context getContext() {
+ return rule.getActivity();
+ }
}