From d6d9a09d505d11148599a95a5be3e1351edbe0ac Mon Sep 17 00:00:00 2001 From: hc Date: Mon, 13 Apr 2026 15:17:52 +0800 Subject: Local iHealth SDK, device detail screen, iOS event fixes --- .../ihealthlibrary/ExampleInstrumentedTest.java | 26 ++++++++++++++++++++++ .../ihealthlibrary/ExampleInstrumentedTest.java | 26 ++++++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100755 libs/ihealth-sdk/android/src/androidTest/java/com/example/jing/ihealthlibrary/ExampleInstrumentedTest.java create mode 100755 libs/ihealth-sdk/android/src/androidTest/java/com/ihealth/ihealthlibrary/ExampleInstrumentedTest.java (limited to 'libs/ihealth-sdk/android/src/androidTest/java/com') 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 @@ +package com.example.jing.ihealthlibrary; + +import android.content.Context; +import androidx.test.InstrumentationRegistry; +import androidx.test.runner.AndroidJUnit4; + +import org.junit.Test; +import org.junit.runner.RunWith; + +import static org.junit.Assert.*; + +/** + * Instrumentation test, which will execute on an Android device. + * + * @see Testing documentation + */ +@RunWith(AndroidJUnit4.class) +public class ExampleInstrumentedTest { + @Test + public void useAppContext() throws Exception { + // Context of the app under test. + Context appContext = InstrumentationRegistry.getTargetContext(); + + assertEquals("com.example.jing.ihealthlibrary.test", appContext.getPackageName()); + } +} 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 @@ +package com.ihealth.ihealthlibrary; + +import android.content.Context; +import androidx.test.InstrumentationRegistry; +import androidx.test.runner.AndroidJUnit4; + +import org.junit.Test; +import org.junit.runner.RunWith; + +import static org.junit.Assert.*; + +/** + * Instrumentation test, which will execute on an Android device. + * + * @see Testing documentation + */ +@RunWith(AndroidJUnit4.class) +public class ExampleInstrumentedTest { + @Test + public void useAppContext() throws Exception { + // Context of the app under test. + Context appContext = InstrumentationRegistry.getTargetContext(); + + assertEquals("com.ihealth.ihealthlibrary.test", appContext.getPackageName()); + } +} -- cgit