summaryrefslogtreecommitdiff
path: root/platform/android/MapboxGLAndroidSDKTestApp/src/androidTest/java/com/mapbox/mapboxsdk/snapshotter/MapSnapshotterTest.kt
blob: e295b5b10b861cfcbaad2a6a34d55b531fead683 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package com.mapbox.mapboxsdk.snapshotter

import android.support.test.rule.ActivityTestRule
import android.support.test.runner.AndroidJUnit4
import com.mapbox.mapboxsdk.testapp.activity.snapshot.MapSnapshotterMarkerActivity
import org.junit.Rule
import org.junit.Test
import org.junit.runner.RunWith

/**
 * Integration test that validates if a snapshot is created with MapSnapshotterMarkerActivity
 */
@RunWith(AndroidJUnit4::class)
class MapSnapshotterTest {

  @Rule
  @JvmField
  var rule = ActivityTestRule(MapSnapshotterMarkerActivity::class.java)

  @Test(timeout = 10000)
  fun mapSnapshotter() {
    while (rule.activity.mapSnapshot == null) {
      Thread.sleep(250)
    }
  }
}