From fc4e5c770f076e98e890cffc9e2976754c3607da Mon Sep 17 00:00:00 2001
From: JLChen <551775569@qq.com>
Date: 星期二, 07 十二月 2021 17:29:58 +0800
Subject: [PATCH] 2021-12-07 1.更新demo

---
 HDLSDK_DEMO/app/src/androidTest/java/com/hdl/hdlsdk/ExampleInstrumentedTest.java |   26 ++++++++++++++++++++++++++
 1 files changed, 26 insertions(+), 0 deletions(-)

diff --git a/HDLSDK_DEMO/app/src/androidTest/java/com/hdl/hdlsdk/ExampleInstrumentedTest.java b/HDLSDK_DEMO/app/src/androidTest/java/com/hdl/hdlsdk/ExampleInstrumentedTest.java
new file mode 100644
index 0000000..4f7fa58
--- /dev/null
+++ b/HDLSDK_DEMO/app/src/androidTest/java/com/hdl/hdlsdk/ExampleInstrumentedTest.java
@@ -0,0 +1,26 @@
+package com.hdl.hdlsdk;
+
+import android.content.Context;
+
+import androidx.test.platform.app.InstrumentationRegistry;
+import androidx.test.ext.junit.runners.AndroidJUnit4;
+
+import org.junit.Test;
+import org.junit.runner.RunWith;
+
+import static org.junit.Assert.*;
+
+/**
+ * Instrumented test, which will execute on an Android device.
+ *
+ * @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
+ */
+@RunWith(AndroidJUnit4.class)
+public class ExampleInstrumentedTest {
+    @Test
+    public void useAppContext() {
+        // Context of the app under test.
+        Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
+        assertEquals("com.hdl.hdlsdk", appContext.getPackageName());
+    }
+}
\ No newline at end of file

--
Gitblit v1.8.0