diff options
author | Ognjen Cirkovic <ciraboxkg@gmail.com> | 2022-10-21 03:32:14 +0200 |
---|---|---|
committer | Ognjen Cirkovic <ciraboxkg@gmail.com> | 2022-10-21 03:32:14 +0200 |
commit | 36f0cc501c433181ddd318e0c0b9e1ad11aa51ae (patch) | |
tree | 6e9fffd0e860efe9d0346349b88f172d707b2f62 /ClientApp/app/src/androidTest/java/com/example | |
parent | cd92fea95833303f0e2083f059ca47c0d5e027da (diff) |
Diffstat (limited to 'ClientApp/app/src/androidTest/java/com/example')
-rw-r--r-- | ClientApp/app/src/androidTest/java/com/example/clientapp/ExampleInstrumentedTest.kt | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/ClientApp/app/src/androidTest/java/com/example/clientapp/ExampleInstrumentedTest.kt b/ClientApp/app/src/androidTest/java/com/example/clientapp/ExampleInstrumentedTest.kt new file mode 100644 index 0000000..39c5f8e --- /dev/null +++ b/ClientApp/app/src/androidTest/java/com/example/clientapp/ExampleInstrumentedTest.kt @@ -0,0 +1,24 @@ +package com.example.clientapp + +import androidx.test.platform.app.InstrumentationRegistry +import androidx.test.ext.junit.runners.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.getInstrumentation().targetContext + assertEquals("com.example.clientapp", appContext.packageName) + } +}
\ No newline at end of file |