aboutsummaryrefslogtreecommitdiffstats
path: root/android/app/src/androidTest
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2025-02-28 12:21:23 -0800
committerAdam Soltys <[email protected]>2025-02-28 12:21:23 -0800
commit50dff116c6b6cdb8ee01720e8efacce9628e571f (patch)
tree5e8474a64eebfa8251139c0f38a5da477e26bc6d /android/app/src/androidTest
parent43185349b3d15de20bc798a3a4c18be94be13a84 (diff)
downloadcoinos-ui-50dff116c6b6cdb8ee01720e8efacce9628e571f.tar.gz
coinos-ui-50dff116c6b6cdb8ee01720e8efacce9628e571f.zip
capacitor android
Diffstat (limited to 'android/app/src/androidTest')
-rw-r--r--android/app/src/androidTest/java/com/getcapacitor/myapp/ExampleInstrumentedTest.java26
1 files changed, 26 insertions, 0 deletions
diff --git a/android/app/src/androidTest/java/com/getcapacitor/myapp/ExampleInstrumentedTest.java b/android/app/src/androidTest/java/com/getcapacitor/myapp/ExampleInstrumentedTest.java
new file mode 100644
index 00000000..f2c2217e
--- /dev/null
+++ b/android/app/src/androidTest/java/com/getcapacitor/myapp/ExampleInstrumentedTest.java
@@ -0,0 +1,26 @@
+package com.getcapacitor.myapp;
+
+import static org.junit.Assert.*;
+
+import android.content.Context;
+import androidx.test.ext.junit.runners.AndroidJUnit4;
+import androidx.test.platform.app.InstrumentationRegistry;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+
+/**
+ * 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() throws Exception {
+ // Context of the app under test.
+ Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
+
+ assertEquals("com.getcapacitor.app", appContext.getPackageName());
+ }
+}