diff options
| author | hc <haocheng.xie@respiree.com> | 2026-04-13 15:17:52 +0800 |
|---|---|---|
| committer | hc <haocheng.xie@respiree.com> | 2026-04-13 15:17:52 +0800 |
| commit | d6d9a09d505d11148599a95a5be3e1351edbe0ac (patch) | |
| tree | a5f5891983d1ff207e99f683a5e151519cef4980 /libs/ihealth-sdk/android/src/androidTest/java/com/ihealth | |
| parent | e4fb9966e762852bf17f21c8406501d42fae0b61 (diff) | |
Local iHealth SDK, device detail screen, iOS event fixes
Diffstat (limited to 'libs/ihealth-sdk/android/src/androidTest/java/com/ihealth')
| -rwxr-xr-x | libs/ihealth-sdk/android/src/androidTest/java/com/ihealth/ihealthlibrary/ExampleInstrumentedTest.java | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/libs/ihealth-sdk/android/src/androidTest/java/com/ihealth/ihealthlibrary/ExampleInstrumentedTest.java b/libs/ihealth-sdk/android/src/androidTest/java/com/ihealth/ihealthlibrary/ExampleInstrumentedTest.java new file mode 100755 index 0000000..600e0ef --- /dev/null +++ b/libs/ihealth-sdk/android/src/androidTest/java/com/ihealth/ihealthlibrary/ExampleInstrumentedTest.java | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | package com.ihealth.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.ihealth.ihealthlibrary.test", appContext.getPackageName()); | ||
| 25 | } | ||
| 26 | } | ||
