aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/src/androidTest
diff options
context:
space:
mode:
authorMarvin Borner2018-08-16 16:07:33 +0200
committerMarvin Borner2018-08-16 16:07:33 +0200
commite398bc3007a7d02f432d2f368369e9bf05cd7d7b (patch)
treecefb225e45deeabac87daa846fce678f7743dedd /app/src/androidTest
parent730c3d3aa97d50b4962f581559b62e9b0e03aacf (diff)
Synced file types
Diffstat (limited to 'app/src/androidTest')
-rw-r--r--app/src/androidTest/java/com/no_name/no_name/ExampleInstrumentedTest.kt24
1 files changed, 24 insertions, 0 deletions
diff --git a/app/src/androidTest/java/com/no_name/no_name/ExampleInstrumentedTest.kt b/app/src/androidTest/java/com/no_name/no_name/ExampleInstrumentedTest.kt
new file mode 100644
index 0000000..5fa842e
--- /dev/null
+++ b/app/src/androidTest/java/com/no_name/no_name/ExampleInstrumentedTest.kt
@@ -0,0 +1,24 @@
+package com.no_name.no_name
+
+import android.support.test.InstrumentationRegistry
+import android.support.test.runner.AndroidJUnit4
+
+import org.junit.Test
+import org.junit.runner.RunWith
+
+import org.junit.Assert.*
+
+/**
+ * Instrumented test, which will execute on an Android device.
+ *
+ * See [testing documentation](http://d.android.com/tools/testing).
+ */
+@RunWith(AndroidJUnit4::class)
+class ExampleInstrumentedTest {
+ @Test
+ fun useAppContext() {
+ // Context of the app under test.
+ val appContext = InstrumentationRegistry.getTargetContext()
+ assertEquals("com.no_name.no_name", appContext.packageName)
+ }
+}