From 7b20783dd6de98dd99aa104b2251eb43aa31cac7 Mon Sep 17 00:00:00 2001 From: YuutaW <17158086+Trumeet@users.noreply.github.com> Date: Sat, 13 Apr 2019 12:09:55 -0700 Subject: First Commit Signed-off-by: YuutaW <17158086+Trumeet@users.noreply.github.com> --- .../moe/yuuta/flow/ExampleInstrumentedTest.java | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 library/src/androidTest/java/moe/yuuta/flow/ExampleInstrumentedTest.java (limited to 'library/src/androidTest/java') diff --git a/library/src/androidTest/java/moe/yuuta/flow/ExampleInstrumentedTest.java b/library/src/androidTest/java/moe/yuuta/flow/ExampleInstrumentedTest.java new file mode 100644 index 0000000..435e2e8 --- /dev/null +++ b/library/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 Testing documentation + */ +@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.test", appContext.getPackageName()); + } +} -- cgit v1.2.3-70-g09d2