aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/src/androidTest/java/com/beam_messenger
diff options
context:
space:
mode:
authorMarvin Borner2018-07-24 12:37:27 +0200
committerMarvin Borner2018-07-24 12:37:27 +0200
commitabe2bc76f7853a5a4b9a0b8df6efb9ebb6b279c6 (patch)
tree3f71b8dd820fe20ecc8e20c1e5791cde4afd7295 /app/src/androidTest/java/com/beam_messenger
parent84e912e94d6a559748c0b737fdb2e664e1291d2f (diff)
Using kotlin now
Diffstat (limited to 'app/src/androidTest/java/com/beam_messenger')
-rw-r--r--app/src/androidTest/java/com/beam_messenger/beam_messenger/ExampleInstrumentedTest.kt24
1 files changed, 24 insertions, 0 deletions
diff --git a/app/src/androidTest/java/com/beam_messenger/beam_messenger/ExampleInstrumentedTest.kt b/app/src/androidTest/java/com/beam_messenger/beam_messenger/ExampleInstrumentedTest.kt
new file mode 100644
index 0000000..e5f991e
--- /dev/null
+++ b/app/src/androidTest/java/com/beam_messenger/beam_messenger/ExampleInstrumentedTest.kt
@@ -0,0 +1,24 @@
+package com.beam_messenger.beam_messenger
+
+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.beam_messenger.beam_messenger", appContext.packageName)
+ }
+}