aboutsummaryrefslogtreecommitdiff
path: root/app/src/androidTest/java/com
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2017-05-29 15:05:26 -0700
committerAllan Wang <me@allanwang.ca>2017-05-29 15:05:26 -0700
commite33120d454aeb72acc2c1315bddea31dd2f15bb2 (patch)
tree6754e8c5c9e8303b0943d1716560b31a0953361a /app/src/androidTest/java/com
parentf83fb56dca63a06e4706e6cb404bca9c49e5dbe0 (diff)
downloadfrost-e33120d454aeb72acc2c1315bddea31dd2f15bb2.tar.gz
frost-e33120d454aeb72acc2c1315bddea31dd2f15bb2.tar.bz2
frost-e33120d454aeb72acc2c1315bddea31dd2f15bb2.zip
initial port
Diffstat (limited to 'app/src/androidTest/java/com')
-rw-r--r--app/src/androidTest/java/com/pitchedapps/frost/ExampleInstrumentedTest.java26
1 files changed, 26 insertions, 0 deletions
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 <a href="http://d.android.com/tools/testing">Testing documentation</a>
+ */
+@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());
+ }
+}