summaryrefslogtreecommitdiffstats
path: root/app/src/androidTest/java/com
diff options
context:
space:
mode:
authorMaksymilian Jopek <maks@jopek.eu>2022-09-28 20:04:04 +0200
committerMaksymilian Jopek <maks@jopek.eu>2022-09-28 20:04:04 +0200
commitc7e46108de55f1797e96d33cf0b805c380051d13 (patch)
tree2b50bb4e712989c790ab252e16ed662817f05bdc /app/src/androidTest/java/com
downloadkanakaeiwa-c7e46108de55f1797e96d33cf0b805c380051d13.tar.gz
kanakaeiwa-c7e46108de55f1797e96d33cf0b805c380051d13.tar.zst
kanakaeiwa-c7e46108de55f1797e96d33cf0b805c380051d13.zip
Initial commit, screen 1
Diffstat (limited to 'app/src/androidTest/java/com')
-rw-r--r--app/src/androidTest/java/com/jopek/kanakaeiwa/ExampleInstrumentedTest.java26
1 files changed, 26 insertions, 0 deletions
diff --git a/app/src/androidTest/java/com/jopek/kanakaeiwa/ExampleInstrumentedTest.java b/app/src/androidTest/java/com/jopek/kanakaeiwa/ExampleInstrumentedTest.java
new file mode 100644
index 0000000..479f97c
--- /dev/null
+++ b/app/src/androidTest/java/com/jopek/kanakaeiwa/ExampleInstrumentedTest.java
@@ -0,0 +1,26 @@
+package com.jopek.kanakaeiwa;
+
+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.jopek.kanakaeiwa", appContext.getPackageName());
+ }
+} \ No newline at end of file