blob: 3d8c3339025145224b0e93be710350806451387e (
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
27
28
29
|
package android.app;
import androidx.test.ext.junit.runners.AndroidJUnit4;
import androidx.test.filters.LargeTest;
import androidx.test.rule.ActivityTestRule;
import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.RunWith;
import android.util.Log;
@LargeTest
@RunWith(AndroidJUnit4.class)
public class NativeActivityTest {
@Rule
public ActivityTestRule<NativeActivity> mActivityTestRule = new ActivityTestRule<>(NativeActivity.class, false, false);
@Test(timeout = 1200000L)
public void runRenderTests() throws Exception {
Log.v("Test", "Start the test");
mActivityTestRule.launchActivity(null);
while (TestState.running) {
Log.v("Test", "Test is running");
Thread.sleep(1000L);
}
Log.v("Test", "End the test");
}
}
|