Browse Source

env test fix

Daniel Zlotin 7 years ago
parent
commit
7612e8286c

+ 1
- 5
AndroidE2E/app/src/androidTest/java/com/reactnativenavigation/e2e/androide2e/EnvironmentTest.java View File

1
 package com.reactnativenavigation.e2e.androide2e;
1
 package com.reactnativenavigation.e2e.androide2e;
2
 
2
 
3
-import android.support.test.runner.AndroidJUnit4;
4
-
5
 import org.junit.Test;
3
 import org.junit.Test;
6
-import org.junit.runner.RunWith;
7
 
4
 
8
 import static android.support.test.InstrumentationRegistry.getInstrumentation;
5
 import static android.support.test.InstrumentationRegistry.getInstrumentation;
9
 import static org.assertj.core.api.Java6Assertions.assertThat;
6
 import static org.assertj.core.api.Java6Assertions.assertThat;
10
 
7
 
11
-@RunWith(AndroidJUnit4.class)
12
-public class EnvironmentTest {
8
+public class EnvironmentTest extends BaseTest {
13
 	@Test
9
 	@Test
14
 	public void instrumentationAndAssertJ() throws Exception {
10
 	public void instrumentationAndAssertJ() throws Exception {
15
 		assertThat(getInstrumentation().getTargetContext().getPackageName()).isEqualTo("com.reactnativenavigation.e2e.androide2e");
11
 		assertThat(getInstrumentation().getTargetContext().getPackageName()).isEqualTo("com.reactnativenavigation.e2e.androide2e");