From 36f0cc501c433181ddd318e0c0b9e1ad11aa51ae Mon Sep 17 00:00:00 2001 From: Ognjen Cirkovic Date: Fri, 21 Oct 2022 03:32:14 +0200 Subject: Commit DemoApp. --- .../example/clientapp/ExampleInstrumentedTest.kt | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 ClientApp/app/src/androidTest/java/com/example/clientapp/ExampleInstrumentedTest.kt (limited to 'ClientApp/app/src/androidTest/java/com') 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 -- cgit v1.2.3