From e33120d454aeb72acc2c1315bddea31dd2f15bb2 Mon Sep 17 00:00:00 2001 From: Allan Wang Date: Mon, 29 May 2017 15:05:26 -0700 Subject: initial port --- .../pitchedapps/frost/ExampleInstrumentedTest.java | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 app/src/androidTest/java/com/pitchedapps/frost/ExampleInstrumentedTest.java (limited to 'app/src/androidTest/java') diff --git a/app/src/androidTest/java/com/pitchedapps/frost/ExampleInstrumentedTest.java b/app/src/androidTest/java/com/pitchedapps/frost/ExampleInstrumentedTest.java new file mode 100644 index 00000000..9e27deaf --- /dev/null +++ b/app/src/androidTest/java/com/pitchedapps/frost/ExampleInstrumentedTest.java @@ -0,0 +1,26 @@ +package com.pitchedapps.frost; + +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.*; + +/** + * Instrumentation test, which will execute on an Android device. + * + * @see Testing documentation + */ +@RunWith(AndroidJUnit4.class) +public class ExampleInstrumentedTest { + @Test + public void useAppContext() throws Exception { + // Context of the app under test. + Context appContext = InstrumentationRegistry.getTargetContext(); + + assertEquals("com.pitchedapps.frost", appContext.getPackageName()); + } +} -- cgit v1.2.3