diff options
author | YuutaW <17158086+Trumeet@users.noreply.github.com> | 2019-04-18 19:36:25 -0700 |
---|---|---|
committer | YuutaW <17158086+Trumeet@users.noreply.github.com> | 2019-04-18 19:36:25 -0700 |
commit | e56c963435040fff497d92798ebbf2b16d63403f (patch) | |
tree | 63cfcfb12fa30f72eea675d7bbe9ae61a25104b2 /app/src/androidTest/java/moe/yuuta/ohmysafdemo/ExampleInstrumentedTest.java | |
download | OhMySAF-e56c963435040fff497d92798ebbf2b16d63403f.tar OhMySAF-e56c963435040fff497d92798ebbf2b16d63403f.tar.gz OhMySAF-e56c963435040fff497d92798ebbf2b16d63403f.tar.bz2 OhMySAF-e56c963435040fff497d92798ebbf2b16d63403f.zip |
First Commit
Signed-off-by: YuutaW <17158086+Trumeet@users.noreply.github.com>
Diffstat (limited to 'app/src/androidTest/java/moe/yuuta/ohmysafdemo/ExampleInstrumentedTest.java')
-rw-r--r-- | app/src/androidTest/java/moe/yuuta/ohmysafdemo/ExampleInstrumentedTest.java | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/app/src/androidTest/java/moe/yuuta/ohmysafdemo/ExampleInstrumentedTest.java b/app/src/androidTest/java/moe/yuuta/ohmysafdemo/ExampleInstrumentedTest.java new file mode 100644 index 0000000..48bd8b8 --- /dev/null +++ b/app/src/androidTest/java/moe/yuuta/ohmysafdemo/ExampleInstrumentedTest.java @@ -0,0 +1,27 @@ +package moe.yuuta.ohmysafdemo; + +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; + +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.ohmysafdemo", appContext.getPackageName()); + } +} |