From 5b680a47dc4ea76beb36cecb6057a240bf45bc49 Mon Sep 17 00:00:00 2001 From: mcarare <48995920+mcarare@users.noreply.github.com> Date: Wed, 29 Mar 2023 15:01:23 +0300 Subject: [PATCH] Bug 1825071 - Remove unnecessary FenixRobolectricTestRunner. --- app/src/test/java/org/mozilla/fenix/ext/TopSiteTest.kt | 3 --- .../fenix/home/intent/CrashReporterIntentProcessorTest.kt | 3 --- .../fenix/home/sessioncontrol/SessionControlViewTest.kt | 3 --- .../org/mozilla/fenix/nimbus/NimbusBranchesControllerTest.kt | 3 --- .../settings/quicksettings/ConnectionDetailsInteractorTest.kt | 3 --- .../cookiebanners/DefaultCookieBannerDetailsInteractorTest.kt | 3 --- 6 files changed, 18 deletions(-) diff --git a/app/src/test/java/org/mozilla/fenix/ext/TopSiteTest.kt b/app/src/test/java/org/mozilla/fenix/ext/TopSiteTest.kt index 6e1f9b311c..1d312980c4 100644 --- a/app/src/test/java/org/mozilla/fenix/ext/TopSiteTest.kt +++ b/app/src/test/java/org/mozilla/fenix/ext/TopSiteTest.kt @@ -7,11 +7,8 @@ package org.mozilla.fenix.ext import mozilla.components.feature.top.sites.TopSite import org.junit.Assert.assertEquals import org.junit.Test -import org.junit.runner.RunWith -import org.mozilla.fenix.helpers.FenixRobolectricTestRunner import org.mozilla.fenix.settings.SupportUtils -@RunWith(FenixRobolectricTestRunner::class) class TopSiteTest { val defaultGoogleTopSite = TopSite.Default( diff --git a/app/src/test/java/org/mozilla/fenix/home/intent/CrashReporterIntentProcessorTest.kt b/app/src/test/java/org/mozilla/fenix/home/intent/CrashReporterIntentProcessorTest.kt index 182604d9f4..4870c07527 100644 --- a/app/src/test/java/org/mozilla/fenix/home/intent/CrashReporterIntentProcessorTest.kt +++ b/app/src/test/java/org/mozilla/fenix/home/intent/CrashReporterIntentProcessorTest.kt @@ -16,12 +16,9 @@ import mozilla.components.lib.crash.Crash.NativeCodeCrash import org.junit.Assert.assertFalse import org.junit.Assert.assertTrue import org.junit.Test -import org.junit.runner.RunWith import org.mozilla.fenix.components.AppStore import org.mozilla.fenix.components.appstate.AppAction -import org.mozilla.fenix.helpers.FenixRobolectricTestRunner -@RunWith(FenixRobolectricTestRunner::class) class CrashReporterIntentProcessorTest { private val appStore: AppStore = mockk(relaxed = true) private val navController: NavController = mockk() diff --git a/app/src/test/java/org/mozilla/fenix/home/sessioncontrol/SessionControlViewTest.kt b/app/src/test/java/org/mozilla/fenix/home/sessioncontrol/SessionControlViewTest.kt index 4b1c0eadc0..b29722ae91 100644 --- a/app/src/test/java/org/mozilla/fenix/home/sessioncontrol/SessionControlViewTest.kt +++ b/app/src/test/java/org/mozilla/fenix/home/sessioncontrol/SessionControlViewTest.kt @@ -14,13 +14,10 @@ import mozilla.components.service.pocket.PocketStory.PocketRecommendedStory import org.junit.Assert.assertEquals import org.junit.Assert.assertTrue import org.junit.Test -import org.junit.runner.RunWith -import org.mozilla.fenix.helpers.FenixRobolectricTestRunner import org.mozilla.fenix.home.recentbookmarks.RecentBookmark import org.mozilla.fenix.home.recentvisits.RecentlyVisitedItem.RecentHistoryGroup import org.mozilla.fenix.utils.Settings -@RunWith(FenixRobolectricTestRunner::class) class SessionControlViewTest { @Test diff --git a/app/src/test/java/org/mozilla/fenix/nimbus/NimbusBranchesControllerTest.kt b/app/src/test/java/org/mozilla/fenix/nimbus/NimbusBranchesControllerTest.kt index 3a2392159e..dbdfbbb5f7 100644 --- a/app/src/test/java/org/mozilla/fenix/nimbus/NimbusBranchesControllerTest.kt +++ b/app/src/test/java/org/mozilla/fenix/nimbus/NimbusBranchesControllerTest.kt @@ -20,17 +20,14 @@ import mozilla.components.support.test.libstate.ext.waitUntilIdle import org.junit.Assert.assertEquals import org.junit.Before import org.junit.Test -import org.junit.runner.RunWith import org.mozilla.experiments.nimbus.Branch import org.mozilla.fenix.components.Components import org.mozilla.fenix.components.FenixSnackbar import org.mozilla.fenix.ext.getRootView import org.mozilla.fenix.ext.settings -import org.mozilla.fenix.helpers.FenixRobolectricTestRunner import org.mozilla.fenix.nimbus.controller.NimbusBranchesController import org.mozilla.fenix.utils.Settings -@RunWith(FenixRobolectricTestRunner::class) class NimbusBranchesControllerTest { private val experiments: NimbusApi = mockk(relaxed = true) diff --git a/app/src/test/java/org/mozilla/fenix/settings/quicksettings/ConnectionDetailsInteractorTest.kt b/app/src/test/java/org/mozilla/fenix/settings/quicksettings/ConnectionDetailsInteractorTest.kt index e4cc6fc4b9..544367ed18 100644 --- a/app/src/test/java/org/mozilla/fenix/settings/quicksettings/ConnectionDetailsInteractorTest.kt +++ b/app/src/test/java/org/mozilla/fenix/settings/quicksettings/ConnectionDetailsInteractorTest.kt @@ -8,10 +8,7 @@ import io.mockk.mockk import io.mockk.verify import org.junit.Before import org.junit.Test -import org.junit.runner.RunWith -import org.mozilla.fenix.helpers.FenixRobolectricTestRunner -@RunWith(FenixRobolectricTestRunner::class) class ConnectionDetailsInteractorTest { private lateinit var controller: ConnectionDetailsController diff --git a/app/src/test/java/org/mozilla/fenix/settings/quicksettings/protections/cookiebanners/DefaultCookieBannerDetailsInteractorTest.kt b/app/src/test/java/org/mozilla/fenix/settings/quicksettings/protections/cookiebanners/DefaultCookieBannerDetailsInteractorTest.kt index cdf17bceff..9be439a65f 100644 --- a/app/src/test/java/org/mozilla/fenix/settings/quicksettings/protections/cookiebanners/DefaultCookieBannerDetailsInteractorTest.kt +++ b/app/src/test/java/org/mozilla/fenix/settings/quicksettings/protections/cookiebanners/DefaultCookieBannerDetailsInteractorTest.kt @@ -8,10 +8,7 @@ import io.mockk.mockk import io.mockk.verify import org.junit.Before import org.junit.Test -import org.junit.runner.RunWith -import org.mozilla.fenix.helpers.FenixRobolectricTestRunner -@RunWith(FenixRobolectricTestRunner::class) class DefaultCookieBannerDetailsInteractorTest { private lateinit var controller: CookieBannerDetailsController private lateinit var interactor: DefaultCookieBannerDetailsInteractor