summaryrefslogtreecommitdiff
path: root/app/src/androidTest/java/moe/yuuta/flow/ExampleInstrumentedTest.java
diff options
context:
space:
mode:
authorYuutaW <17158086+Trumeet@users.noreply.github.com>2019-04-13 12:09:55 -0700
committerYuutaW <17158086+Trumeet@users.noreply.github.com>2019-04-13 12:09:55 -0700
commit7b20783dd6de98dd99aa104b2251eb43aa31cac7 (patch)
treed1a4c5da1caa09175e9d2b8199e6bc0aa481bd5b /app/src/androidTest/java/moe/yuuta/flow/ExampleInstrumentedTest.java
downloadFlow-7b20783dd6de98dd99aa104b2251eb43aa31cac7.tar
Flow-7b20783dd6de98dd99aa104b2251eb43aa31cac7.tar.gz
Flow-7b20783dd6de98dd99aa104b2251eb43aa31cac7.tar.bz2
Flow-7b20783dd6de98dd99aa104b2251eb43aa31cac7.zip
First Commit
Signed-off-by: YuutaW <17158086+Trumeet@users.noreply.github.com>
Diffstat (limited to 'app/src/androidTest/java/moe/yuuta/flow/ExampleInstrumentedTest.java')
-rw-r--r--app/src/androidTest/java/moe/yuuta/flow/ExampleInstrumentedTest.java26
1 files changed, 26 insertions, 0 deletions
diff --git a/app/src/androidTest/java/moe/yuuta/flow/ExampleInstrumentedTest.java b/app/src/androidTest/java/moe/yuuta/flow/ExampleInstrumentedTest.java
new file mode 100644
index 0000000..2569893
--- /dev/null
+++ b/app/src/androidTest/java/moe/yuuta/flow/ExampleInstrumentedTest.java
@@ -0,0 +1,26 @@
+package moe.yuuta.flow;
+
+import android.content.Context;
+import android.support.test.InstrumentationRegistry;
+import android.support.test.runner.AndroidJUnit4;
+
+import org.junit.Test;
+import org.junit.runner.RunWith;
+
+import static org.junit.Assert.assertEquals;
+
+/**
+ * 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("moe.yuuta.flow", appContext.getPackageName());
+ }
+}