diff --git a/app/src/test/java/org/mozilla/fenix/helpers/TestApplication.kt b/app/src/test/java/org/mozilla/fenix/helpers/FenixRobolectricTestApplication.kt similarity index 77% rename from app/src/test/java/org/mozilla/fenix/helpers/TestApplication.kt rename to app/src/test/java/org/mozilla/fenix/helpers/FenixRobolectricTestApplication.kt index 4da72e7eaa..30eef56504 100644 --- a/app/src/test/java/org/mozilla/fenix/helpers/TestApplication.kt +++ b/app/src/test/java/org/mozilla/fenix/helpers/FenixRobolectricTestApplication.kt @@ -7,7 +7,10 @@ package org.mozilla.fenix.helpers import org.mozilla.fenix.FenixApplication import org.mozilla.fenix.components.TestComponents -class TestApplication : FenixApplication() { +/** + * An override of our application for use in Robolectric-based unit tests. + */ +class FenixRobolectricTestApplication : FenixApplication() { override val components = TestComponents(this) diff --git a/app/src/test/java/org/mozilla/fenix/helpers/FenixRobolectricTestRunner.kt b/app/src/test/java/org/mozilla/fenix/helpers/FenixRobolectricTestRunner.kt index 06449af47b..cdebf16ba0 100644 --- a/app/src/test/java/org/mozilla/fenix/helpers/FenixRobolectricTestRunner.kt +++ b/app/src/test/java/org/mozilla/fenix/helpers/FenixRobolectricTestRunner.kt @@ -25,7 +25,7 @@ class FenixRobolectricTestRunner(testClass: Class<*>) : RobolectricTestRunner(te override fun buildGlobalConfig(): Config { return Config.Builder() - .setApplication(TestApplication::class.java) + .setApplication(FenixRobolectricTestApplication::class.java) .build() } }