diff options
author | Andrew Dolgov <[email protected]> | 2020-04-20 19:32:03 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2020-04-20 19:32:03 +0300 |
commit | fa25f18453c05e1907b425b11edf4802a6448754 (patch) | |
tree | 626c3ff8c2211a8b4ee142d7eb7660de8f42d2b2 /org.fox.epube/src/androidTest/java/org |
initial
Diffstat (limited to 'org.fox.epube/src/androidTest/java/org')
-rw-r--r-- | org.fox.epube/src/androidTest/java/org/fox/epube/ExampleInstrumentedTest.java | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/org.fox.epube/src/androidTest/java/org/fox/epube/ExampleInstrumentedTest.java b/org.fox.epube/src/androidTest/java/org/fox/epube/ExampleInstrumentedTest.java new file mode 100644 index 0000000..170d665 --- /dev/null +++ b/org.fox.epube/src/androidTest/java/org/fox/epube/ExampleInstrumentedTest.java @@ -0,0 +1,27 @@ +package org.fox.epube;
+
+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("org.fox.epube", appContext.getPackageName());
+ }
+}
|