games/hub: shared test scaffolding sweep
- Commit
9749c92e02b27dba9b56d55a614c4e4764ca2ae3- Author
- Vayun Mathur <[email protected]>
- When
- 2026-12-01 22:48 UTC (4 days ago)
- Parents
ecc425e
Remove class-level @Config(sdk = [34]) annotations that only duplicate the repo-wide sdk=34 default in build-logic/shared-test-resources/robolectric.properties, dropping the Config import where it becomes unused. Qualifier/shadow/application and non-34 configs are untouched; files dirty from other agents' in-flight work were skipped file-by-file. Verified: :games:hub:testDevUnitTest green (BUILD SUCCESSFUL). Lint (:lint / :lintVitalRelease) was not run for this module in this sweep.
Diff
games/hub/src/test/java/com/vayunmathur/games/hub/network/PlayOnTvSessionTest.kt
diff --git a/games/hub/src/test/java/com/vayunmathur/games/hub/network/PlayOnTvSessionTest.kt b/games/hub/src/test/java/com/vayunmathur/games/hub/network/PlayOnTvSessionTest.ktindex fe93947ff4..7aab2fdfb7 100644--- a/games/hub/src/test/java/com/vayunmathur/games/hub/network/PlayOnTvSessionTest.kt+++ b/games/hub/src/test/java/com/vayunmathur/games/hub/network/PlayOnTvSessionTest.kt@@ -6,10 +6,8 @@ import kotlin.test.Test import kotlin.test.assertNotNull import org.junit.runner.RunWith import org.robolectric.RobolectricTestRunner-import org.robolectric.annotation.Config @RunWith(RobolectricTestRunner::class)-@Config(sdk=[34]) class PlayOnTvSessionTest { @Test fun sessionLifecycleAndDelegationDoNotCrash() { val ctx = ApplicationProvider.getApplicationContext<android.content.Context>()
games/hub/src/test/java/com/vayunmathur/games/hub/platform/GameLauncherTest.kt
diff --git a/games/hub/src/test/java/com/vayunmathur/games/hub/platform/GameLauncherTest.kt b/games/hub/src/test/java/com/vayunmathur/games/hub/platform/GameLauncherTest.ktindex 1539e4ab64..2077134f9a 100644--- a/games/hub/src/test/java/com/vayunmathur/games/hub/platform/GameLauncherTest.kt+++ b/games/hub/src/test/java/com/vayunmathur/games/hub/platform/GameLauncherTest.kt@@ -19,11 +19,9 @@ import org.junit.Rule import org.junit.runner.RunWith import org.robolectric.RobolectricTestRunner import org.robolectric.Shadows.shadowOf-import org.robolectric.annotation.Config /** Play on a missing game must lead somewhere: the game, its store listing, or a message. */ @RunWith(RobolectricTestRunner::class)-@Config(sdk = [34]) class GameLauncherTest { @get:Rule
games/hub/src/test/java/com/vayunmathur/games/hub/ui/ControllerPadTest.kt
diff --git a/games/hub/src/test/java/com/vayunmathur/games/hub/ui/ControllerPadTest.kt b/games/hub/src/test/java/com/vayunmathur/games/hub/ui/ControllerPadTest.ktindex ea26d3db30..b78d6f7872 100644--- a/games/hub/src/test/java/com/vayunmathur/games/hub/ui/ControllerPadTest.kt+++ b/games/hub/src/test/java/com/vayunmathur/games/hub/ui/ControllerPadTest.kt@@ -20,11 +20,9 @@ import kotlin.test.assertTrue import org.junit.Rule import org.junit.runner.RunWith import org.robolectric.RobolectricTestRunner-import org.robolectric.annotation.Config /** "Play on TV" pad: screen stays on while seated; copy comes from resources. */ @RunWith(RobolectricTestRunner::class)-@Config(sdk = [34]) class ControllerPadTest { @get:Rule
games/hub/src/test/java/com/vayunmathur/games/hub/ui/HubCoveragePassTest.kt
diff --git a/games/hub/src/test/java/com/vayunmathur/games/hub/ui/HubCoveragePassTest.kt b/games/hub/src/test/java/com/vayunmathur/games/hub/ui/HubCoveragePassTest.ktindex 30a6b0f243..51f5423011 100644--- a/games/hub/src/test/java/com/vayunmathur/games/hub/ui/HubCoveragePassTest.kt+++ b/games/hub/src/test/java/com/vayunmathur/games/hub/ui/HubCoveragePassTest.kt@@ -28,10 +28,8 @@ import kotlin.test.assertTrue import org.junit.Rule import org.junit.runner.RunWith import org.robolectric.RobolectricTestRunner-import org.robolectric.annotation.Config @RunWith(RobolectricTestRunner::class)-@Config(sdk = [34]) class HubCoveragePassTest { @get:Rule val rule = createComposeRule()
games/hub/src/test/java/com/vayunmathur/games/hub/ui/HubNavigationCoverageTest.kt
diff --git a/games/hub/src/test/java/com/vayunmathur/games/hub/ui/HubNavigationCoverageTest.kt b/games/hub/src/test/java/com/vayunmathur/games/hub/ui/HubNavigationCoverageTest.ktindex 260260f2c0..19ec6153b9 100644--- a/games/hub/src/test/java/com/vayunmathur/games/hub/ui/HubNavigationCoverageTest.kt+++ b/games/hub/src/test/java/com/vayunmathur/games/hub/ui/HubNavigationCoverageTest.kt@@ -22,10 +22,8 @@ import kotlinx.coroutines.runBlocking import org.junit.Rule import org.junit.runner.RunWith import org.robolectric.RobolectricTestRunner-import org.robolectric.annotation.Config @RunWith(RobolectricTestRunner::class)-@Config(sdk = [34]) class HubNavigationCoverageTest { @get:Rule val rule = createComposeRule()
games/hub/src/test/java/com/vayunmathur/games/hub/ui/HubProfileComponentsTest.kt
diff --git a/games/hub/src/test/java/com/vayunmathur/games/hub/ui/HubProfileComponentsTest.kt b/games/hub/src/test/java/com/vayunmathur/games/hub/ui/HubProfileComponentsTest.ktindex 33df93d7d1..69f11cbc5d 100644--- a/games/hub/src/test/java/com/vayunmathur/games/hub/ui/HubProfileComponentsTest.kt+++ b/games/hub/src/test/java/com/vayunmathur/games/hub/ui/HubProfileComponentsTest.kt@@ -21,11 +21,9 @@ import kotlin.test.assertTrue import org.junit.Rule import org.junit.runner.RunWith import org.robolectric.RobolectricTestRunner-import org.robolectric.annotation.Config /** Profile screen, achievement rows, activity items, streak indicator. */ @RunWith(RobolectricTestRunner::class)-@Config(sdk = [34]) class HubProfileComponentsTest { @get:Rule
games/hub/src/test/java/com/vayunmathur/games/hub/ui/HubScreensTest.kt
diff --git a/games/hub/src/test/java/com/vayunmathur/games/hub/ui/HubScreensTest.kt b/games/hub/src/test/java/com/vayunmathur/games/hub/ui/HubScreensTest.ktindex 6b02180f71..af8bcaab8a 100644--- a/games/hub/src/test/java/com/vayunmathur/games/hub/ui/HubScreensTest.kt+++ b/games/hub/src/test/java/com/vayunmathur/games/hub/ui/HubScreensTest.kt@@ -26,11 +26,9 @@ import kotlin.test.assertTrue import org.junit.Rule import org.junit.runner.RunWith import org.robolectric.RobolectricTestRunner-import org.robolectric.annotation.Config /** Dashboard, games list and shared hub components. */ @RunWith(RobolectricTestRunner::class)-@Config(sdk = [34]) class HubScreensTest { @get:Rule
games/hub/src/test/java/com/vayunmathur/games/hub/ui/HubUxAuditTest.kt
diff --git a/games/hub/src/test/java/com/vayunmathur/games/hub/ui/HubUxAuditTest.kt b/games/hub/src/test/java/com/vayunmathur/games/hub/ui/HubUxAuditTest.ktindex 44e801380c..1d8b14e04e 100644--- a/games/hub/src/test/java/com/vayunmathur/games/hub/ui/HubUxAuditTest.kt+++ b/games/hub/src/test/java/com/vayunmathur/games/hub/ui/HubUxAuditTest.kt@@ -57,7 +57,6 @@ import org.robolectric.annotation.Config /** Regression tests for the games UX audit fixes (#ux-audit). */ @RunWith(RobolectricTestRunner::class)-@Config(sdk = [34]) class HubUxAuditTest { @get:Rule
games/hub/src/test/java/com/vayunmathur/games/hub/ui/HubYuuEditorCoverageTest.kt
diff --git a/games/hub/src/test/java/com/vayunmathur/games/hub/ui/HubYuuEditorCoverageTest.kt b/games/hub/src/test/java/com/vayunmathur/games/hub/ui/HubYuuEditorCoverageTest.ktindex 9c5c94659a..3283578bf5 100644--- a/games/hub/src/test/java/com/vayunmathur/games/hub/ui/HubYuuEditorCoverageTest.kt+++ b/games/hub/src/test/java/com/vayunmathur/games/hub/ui/HubYuuEditorCoverageTest.kt@@ -23,10 +23,8 @@ import kotlin.test.assertTrue import org.junit.Rule import org.junit.runner.RunWith import org.robolectric.RobolectricTestRunner-import org.robolectric.annotation.Config @RunWith(RobolectricTestRunner::class)-@Config(sdk=[34]) class HubYuuEditorCoverageTest { @get:Rule val rule = createComposeRule()