diff options
author | Amit Kumar <amitkma@e.email> | 2021-04-27 22:19:39 +0530 |
---|---|---|
committer | Amit Kumar <amitkma@e.email> | 2021-04-27 22:19:39 +0530 |
commit | 05fca2863a198db5d58fd55db6c5d7b67fd46e58 (patch) | |
tree | 952fa67f0f03adf081ecec55a9c1bc0a920df7d1 /app/src/androidTest/java/foundation/e/privacycentralapp |
Initial setup
Diffstat (limited to 'app/src/androidTest/java/foundation/e/privacycentralapp')
-rw-r--r-- | app/src/androidTest/java/foundation/e/privacycentralapp/ExampleInstrumentedTest.kt | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/app/src/androidTest/java/foundation/e/privacycentralapp/ExampleInstrumentedTest.kt b/app/src/androidTest/java/foundation/e/privacycentralapp/ExampleInstrumentedTest.kt new file mode 100644 index 0000000..f42f093 --- /dev/null +++ b/app/src/androidTest/java/foundation/e/privacycentralapp/ExampleInstrumentedTest.kt @@ -0,0 +1,39 @@ +/* + * Copyright (C) 2021 E FOUNDATION + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. + */ + +package foundation.e.privacycentralapp + +import androidx.test.ext.junit.runners.AndroidJUnit4 +import androidx.test.platform.app.InstrumentationRegistry +import org.junit.Assert +import org.junit.Test +import org.junit.runner.RunWith + +/** + * 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 + Assert.assertEquals("foundation.e.privacycentralapp", appContext.packageName) + } +} |