diff options
Diffstat (limited to 'libs/ihealth-sdk/android/src/androidTest/java/com/example')
| -rwxr-xr-x | libs/ihealth-sdk/android/src/androidTest/java/com/example/jing/ihealthlibrary/ExampleInstrumentedTest.java | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/libs/ihealth-sdk/android/src/androidTest/java/com/example/jing/ihealthlibrary/ExampleInstrumentedTest.java b/libs/ihealth-sdk/android/src/androidTest/java/com/example/jing/ihealthlibrary/ExampleInstrumentedTest.java new file mode 100755 index 0000000..5417626 --- /dev/null +++ b/libs/ihealth-sdk/android/src/androidTest/java/com/example/jing/ihealthlibrary/ExampleInstrumentedTest.java | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | package com.example.jing.ihealthlibrary; | ||
| 2 | |||
| 3 | import android.content.Context; | ||
| 4 | import androidx.test.InstrumentationRegistry; | ||
| 5 | import androidx.test.runner.AndroidJUnit4; | ||
| 6 | |||
| 7 | import org.junit.Test; | ||
| 8 | import org.junit.runner.RunWith; | ||
| 9 | |||
| 10 | import static org.junit.Assert.*; | ||
| 11 | |||
| 12 | /** | ||
| 13 | * Instrumentation test, which will execute on an Android device. | ||
| 14 | * | ||
| 15 | * @see <a href="http://d.android.com/tools/testing">Testing documentation</a> | ||
| 16 | */ | ||
| 17 | @RunWith(AndroidJUnit4.class) | ||
| 18 | public class ExampleInstrumentedTest { | ||
| 19 | @Test | ||
| 20 | public void useAppContext() throws Exception { | ||
| 21 | // Context of the app under test. | ||
| 22 | Context appContext = InstrumentationRegistry.getTargetContext(); | ||
| 23 | |||
| 24 | assertEquals("com.example.jing.ihealthlibrary.test", appContext.getPackageName()); | ||
| 25 | } | ||
| 26 | } | ||
