email: shared test scaffolding sweep
- Commit
ecc425e6f2029f7e1c7cf24841daa057cc67d21d- Author
- Vayun Mathur <[email protected]>
- When
- 2026-12-01 22:48 UTC (4 days ago)
- Parents
7939ace
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: filtered run of the stripped classes via :email:testDevUnitTest --tests ... green (BUILD SUCCESSFUL in 56s). Full-task batch run timed out under host load before reaching email. Lint (:lint / :lintVitalRelease) was not run for this module in this sweep.
Diff
email/src/test/java/com/vayunmathur/email/MainActivityTest.kt
diff --git a/email/src/test/java/com/vayunmathur/email/MainActivityTest.kt b/email/src/test/java/com/vayunmathur/email/MainActivityTest.ktindex bcf0f469b5..b3701174f0 100644--- a/email/src/test/java/com/vayunmathur/email/MainActivityTest.kt+++ b/email/src/test/java/com/vayunmathur/email/MainActivityTest.kt@@ -26,7 +26,6 @@ import kotlin.test.assertNull import org.junit.runner.RunWith import org.robolectric.Robolectric import org.robolectric.RobolectricTestRunner-import org.robolectric.annotation.Config import org.robolectric.shadows.ShadowContentResolver /**@@ -35,7 +34,6 @@ import org.robolectric.shadows.ShadowContentResolver * route before the nav graph reads it. */ @RunWith(RobolectricTestRunner::class)-@Config(sdk = [34]) class MainActivityTest { private val context get() = ApplicationProvider.getApplicationContext<Application>()
email/src/test/java/com/vayunmathur/email/composer/EmailHtmlEditorControllerTest.kt
diff --git a/email/src/test/java/com/vayunmathur/email/composer/EmailHtmlEditorControllerTest.kt b/email/src/test/java/com/vayunmathur/email/composer/EmailHtmlEditorControllerTest.ktindex ce9a5066c4..96abe7761a 100644--- a/email/src/test/java/com/vayunmathur/email/composer/EmailHtmlEditorControllerTest.kt+++ b/email/src/test/java/com/vayunmathur/email/composer/EmailHtmlEditorControllerTest.kt@@ -13,7 +13,6 @@ import kotlin.test.assertNull import kotlin.test.assertTrue import org.junit.runner.RunWith import org.robolectric.RobolectricTestRunner-import org.robolectric.annotation.Config /** * Drives the real [EmailHtmlEditorController] with a bound [EditText]: inline@@ -22,7 +21,6 @@ import org.robolectric.annotation.Config * (or drops live ones). */ @RunWith(RobolectricTestRunner::class)-@Config(sdk = [34]) class EmailHtmlEditorControllerTest { private val context get() = ApplicationProvider.getApplicationContext<Application>()
email/src/test/java/com/vayunmathur/email/composer/EmailHtmlEditorTest.kt
diff --git a/email/src/test/java/com/vayunmathur/email/composer/EmailHtmlEditorTest.kt b/email/src/test/java/com/vayunmathur/email/composer/EmailHtmlEditorTest.ktindex b49bcb199a..09933f2273 100644--- a/email/src/test/java/com/vayunmathur/email/composer/EmailHtmlEditorTest.kt+++ b/email/src/test/java/com/vayunmathur/email/composer/EmailHtmlEditorTest.kt@@ -10,7 +10,6 @@ import kotlin.test.assertTrue import org.junit.Rule import org.junit.runner.RunWith import org.robolectric.RobolectricTestRunner-import org.robolectric.annotation.Config /** * [EmailHtmlEditor] AndroidView wiring: the factory must parse the@@ -21,7 +20,6 @@ import org.robolectric.annotation.Config * when [EmailHtmlEditorController.setHtml] bumps the set-version. */ @RunWith(RobolectricTestRunner::class)-@Config(sdk = [34]) class EmailHtmlEditorTest { @get:Rule
email/src/test/java/com/vayunmathur/email/data/BackfillTest.kt
diff --git a/email/src/test/java/com/vayunmathur/email/data/BackfillTest.kt b/email/src/test/java/com/vayunmathur/email/data/BackfillTest.ktindex 10d02215b3..ff21515b81 100644--- a/email/src/test/java/com/vayunmathur/email/data/BackfillTest.kt+++ b/email/src/test/java/com/vayunmathur/email/data/BackfillTest.kt@@ -13,7 +13,6 @@ import kotlin.test.assertEquals import kotlin.test.assertTrue import org.junit.runner.RunWith import org.robolectric.RobolectricTestRunner-import org.robolectric.annotation.Config /** * Drives the real [DateMillisBackfill] and [PeekContentBackfill] against an@@ -22,7 +21,6 @@ import org.robolectric.annotation.Config * land the right values, since sorting and list snippets read these columns. */ @RunWith(RobolectricTestRunner::class)-@Config(sdk = [34]) class BackfillTest { private val context get() = ApplicationProvider.getApplicationContext<Application>()
email/src/test/java/com/vayunmathur/email/data/CredentialCryptoTest.kt
diff --git a/email/src/test/java/com/vayunmathur/email/data/CredentialCryptoTest.kt b/email/src/test/java/com/vayunmathur/email/data/CredentialCryptoTest.ktindex 72f92476c1..1711677749 100644--- a/email/src/test/java/com/vayunmathur/email/data/CredentialCryptoTest.kt+++ b/email/src/test/java/com/vayunmathur/email/data/CredentialCryptoTest.kt@@ -10,7 +10,6 @@ import kotlin.test.assertFalse import kotlin.test.assertTrue import org.junit.runner.RunWith import org.robolectric.RobolectricTestRunner-import org.robolectric.annotation.Config /** * [CredentialCrypto] against an in-memory AndroidKeyStore: the account@@ -20,7 +19,6 @@ import org.robolectric.annotation.Config * garbage a login would silently send. */ @RunWith(RobolectricTestRunner::class)-@Config(sdk = [34]) class CredentialCryptoTest { @BeforeTest
email/src/test/java/com/vayunmathur/email/data/EmailMessageHelpersTest.kt
diff --git a/email/src/test/java/com/vayunmathur/email/data/EmailMessageHelpersTest.kt b/email/src/test/java/com/vayunmathur/email/data/EmailMessageHelpersTest.ktindex d3fcf6955e..393ca17dba 100644--- a/email/src/test/java/com/vayunmathur/email/data/EmailMessageHelpersTest.kt+++ b/email/src/test/java/com/vayunmathur/email/data/EmailMessageHelpersTest.kt@@ -6,7 +6,6 @@ import kotlin.test.assertNull import kotlin.test.assertTrue import org.junit.runner.RunWith import org.robolectric.RobolectricTestRunner-import org.robolectric.annotation.Config /** * Pins message-body helpers and unsubscribe detection against fixed vectors.@@ -17,7 +16,6 @@ import org.robolectric.annotation.Config * affordance on the wrong messages. */ @RunWith(RobolectricTestRunner::class)-@Config(sdk = [34]) class EmailMessageHelpersTest { private fun msg(
email/src/test/java/com/vayunmathur/email/data/EmailOutboxStoreTest.kt
diff --git a/email/src/test/java/com/vayunmathur/email/data/EmailOutboxStoreTest.kt b/email/src/test/java/com/vayunmathur/email/data/EmailOutboxStoreTest.ktindex 13d3ccf6d2..ea8e6f3aa7 100644--- a/email/src/test/java/com/vayunmathur/email/data/EmailOutboxStoreTest.kt+++ b/email/src/test/java/com/vayunmathur/email/data/EmailOutboxStoreTest.kt@@ -13,7 +13,6 @@ import kotlin.test.assertNull import kotlin.test.assertTrue import org.junit.runner.RunWith import org.robolectric.RobolectricTestRunner-import org.robolectric.annotation.Config /** * Drives the real [EmailOutboxStore] against an in-memory database: the@@ -22,7 +21,6 @@ import org.robolectric.annotation.Config * rows and counters. */ @RunWith(RobolectricTestRunner::class)-@Config(sdk = [34]) class EmailOutboxStoreTest { private val context get() = ApplicationProvider.getApplicationContext<Application>()
email/src/test/java/com/vayunmathur/email/data/EmailSettingsTest.kt
diff --git a/email/src/test/java/com/vayunmathur/email/data/EmailSettingsTest.kt b/email/src/test/java/com/vayunmathur/email/data/EmailSettingsTest.ktindex 98a63bef3e..8849bcb910 100644--- a/email/src/test/java/com/vayunmathur/email/data/EmailSettingsTest.kt+++ b/email/src/test/java/com/vayunmathur/email/data/EmailSettingsTest.kt@@ -9,11 +9,9 @@ import kotlin.test.assertSame import kotlin.test.assertTrue import org.junit.runner.RunWith import org.robolectric.RobolectricTestRunner-import org.robolectric.annotation.Config /** Pins [EmailSettings]: default-off remote images, persistence and singleton identity. */ @RunWith(RobolectricTestRunner::class)-@Config(sdk = [34]) class EmailSettingsTest { private val context get() = ApplicationProvider.getApplicationContext<Application>()
email/src/test/java/com/vayunmathur/email/data/ImapIdleServiceLiveTest.kt
diff --git a/email/src/test/java/com/vayunmathur/email/data/ImapIdleServiceLiveTest.kt b/email/src/test/java/com/vayunmathur/email/data/ImapIdleServiceLiveTest.ktindex b2dd458c8c..a9b3517e90 100644--- a/email/src/test/java/com/vayunmathur/email/data/ImapIdleServiceLiveTest.kt+++ b/email/src/test/java/com/vayunmathur/email/data/ImapIdleServiceLiveTest.kt@@ -18,7 +18,6 @@ import kotlinx.coroutines.runBlocking import org.junit.runner.RunWith import org.robolectric.Robolectric import org.robolectric.RobolectricTestRunner-import org.robolectric.annotation.Config /** * [ImapIdleService] against the fake IMAP server: with a configured@@ -28,7 +27,6 @@ import org.robolectric.annotation.Config * end that account's loop instead of reconnecting forever. */ @RunWith(RobolectricTestRunner::class)-@Config(sdk = [34]) class ImapIdleServiceLiveTest { private val context get() = ApplicationProvider.getApplicationContext<Application>()
email/src/test/java/com/vayunmathur/email/data/ImapIdleServiceTest.kt
diff --git a/email/src/test/java/com/vayunmathur/email/data/ImapIdleServiceTest.kt b/email/src/test/java/com/vayunmathur/email/data/ImapIdleServiceTest.ktindex f7d46d686f..ad4d2629da 100644--- a/email/src/test/java/com/vayunmathur/email/data/ImapIdleServiceTest.kt+++ b/email/src/test/java/com/vayunmathur/email/data/ImapIdleServiceTest.kt@@ -13,7 +13,6 @@ import kotlin.test.assertNull import org.junit.runner.RunWith import org.robolectric.Robolectric import org.robolectric.RobolectricTestRunner-import org.robolectric.annotation.Config /** * [ImapIdleService] lifecycle without a server: binding is null, start/stop@@ -21,7 +20,6 @@ import org.robolectric.annotation.Config * itself instead of idling forever. */ @RunWith(RobolectricTestRunner::class)-@Config(sdk = [34]) class ImapIdleServiceTest { private val context get() = ApplicationProvider.getApplicationContext<Application>()
email/src/test/java/com/vayunmathur/email/data/OutlookOAuthFlowTest.kt
diff --git a/email/src/test/java/com/vayunmathur/email/data/OutlookOAuthFlowTest.kt b/email/src/test/java/com/vayunmathur/email/data/OutlookOAuthFlowTest.ktindex edd24f6dad..cf7c65afca 100644--- a/email/src/test/java/com/vayunmathur/email/data/OutlookOAuthFlowTest.kt+++ b/email/src/test/java/com/vayunmathur/email/data/OutlookOAuthFlowTest.kt@@ -13,7 +13,6 @@ import kotlinx.coroutines.runBlocking import org.junit.runner.RunWith import org.robolectric.RobolectricTestRunner import org.robolectric.Shadows-import org.robolectric.annotation.Config /** * [OutlookOAuth] flow state machine offline: start() must persist the PKCE@@ -21,7 +20,6 @@ import org.robolectric.annotation.Config * mismatch and surface an error redirect without touching the network. */ @RunWith(RobolectricTestRunner::class)-@Config(sdk = [34]) class OutlookOAuthFlowTest { private val context get() = ApplicationProvider.getApplicationContext<Application>()
email/src/test/java/com/vayunmathur/email/data/OutlookOAuthFlowW5Test.kt
diff --git a/email/src/test/java/com/vayunmathur/email/data/OutlookOAuthFlowW5Test.kt b/email/src/test/java/com/vayunmathur/email/data/OutlookOAuthFlowW5Test.ktindex 946adde174..b2e9779b58 100644--- a/email/src/test/java/com/vayunmathur/email/data/OutlookOAuthFlowW5Test.kt+++ b/email/src/test/java/com/vayunmathur/email/data/OutlookOAuthFlowW5Test.kt@@ -19,11 +19,9 @@ import kotlin.test.assertTrue import kotlinx.coroutines.runBlocking import org.junit.runner.RunWith import org.robolectric.RobolectricTestRunner-import org.robolectric.annotation.Config /** W5: OutlookOAuth complete/refresh against a loopback token endpoint. */ @RunWith(RobolectricTestRunner::class)-@Config(sdk = [34]) class OutlookOAuthFlowW5Test { private val context get() = ApplicationProvider.getApplicationContext<Application>() private lateinit var server: HttpServer
email/src/test/java/com/vayunmathur/email/draft/EmailDraftActionsTest.kt
diff --git a/email/src/test/java/com/vayunmathur/email/draft/EmailDraftActionsTest.kt b/email/src/test/java/com/vayunmathur/email/draft/EmailDraftActionsTest.ktindex 695076c5de..bdc3f3224e 100644--- a/email/src/test/java/com/vayunmathur/email/draft/EmailDraftActionsTest.kt+++ b/email/src/test/java/com/vayunmathur/email/draft/EmailDraftActionsTest.kt@@ -19,7 +19,6 @@ import kotlin.test.assertEquals import kotlin.test.assertNull import org.junit.runner.RunWith import org.robolectric.RobolectricTestRunner-import org.robolectric.annotation.Config /** * Drives the real [EmailDraftActions] against an in-memory database: drafts@@ -28,7 +27,6 @@ import org.robolectric.annotation.Config * and asserts the exact stored row. */ @RunWith(RobolectricTestRunner::class)-@Config(sdk = [34]) class EmailDraftActionsTest { private val context get() = ApplicationProvider.getApplicationContext<Application>()
email/src/test/java/com/vayunmathur/email/imap/EmailManagerFakeServerTest.kt
diff --git a/email/src/test/java/com/vayunmathur/email/imap/EmailManagerFakeServerTest.kt b/email/src/test/java/com/vayunmathur/email/imap/EmailManagerFakeServerTest.ktindex 31b397c68b..89246797f2 100644--- a/email/src/test/java/com/vayunmathur/email/imap/EmailManagerFakeServerTest.kt+++ b/email/src/test/java/com/vayunmathur/email/imap/EmailManagerFakeServerTest.kt@@ -13,11 +13,9 @@ import kotlin.test.assertTrue import kotlinx.coroutines.runBlocking import org.junit.runner.RunWith import org.robolectric.RobolectricTestRunner-import org.robolectric.annotation.Config /** [EmailManager] facade over the fake IMAP/SMTP servers: every delegate must reach the right client. */ @RunWith(RobolectricTestRunner::class)-@Config(sdk = [34]) class EmailManagerFakeServerTest { private lateinit var imap: FakeImapServer
email/src/test/java/com/vayunmathur/email/imap/FakeImapServerTest.kt
diff --git a/email/src/test/java/com/vayunmathur/email/imap/FakeImapServerTest.kt b/email/src/test/java/com/vayunmathur/email/imap/FakeImapServerTest.ktindex e35954c50e..bff19b78db 100644--- a/email/src/test/java/com/vayunmathur/email/imap/FakeImapServerTest.kt+++ b/email/src/test/java/com/vayunmathur/email/imap/FakeImapServerTest.kt@@ -21,7 +21,6 @@ import kotlin.test.assertTrue import kotlinx.coroutines.runBlocking import org.junit.runner.RunWith import org.robolectric.RobolectricTestRunner-import org.robolectric.annotation.Config /** * Scripted localhost IMAP server speaking just enough RFC 3501 for the raw@@ -241,7 +240,6 @@ class FakeImapServer( } @RunWith(RobolectricTestRunner::class)-@Config(sdk = [34]) class FakeImapServerTest { private lateinit var server: FakeImapServer
email/src/test/java/com/vayunmathur/email/imap/FakeSmtpServerTest.kt
diff --git a/email/src/test/java/com/vayunmathur/email/imap/FakeSmtpServerTest.kt b/email/src/test/java/com/vayunmathur/email/imap/FakeSmtpServerTest.ktindex 45d2678596..029e585fd2 100644--- a/email/src/test/java/com/vayunmathur/email/imap/FakeSmtpServerTest.kt+++ b/email/src/test/java/com/vayunmathur/email/imap/FakeSmtpServerTest.kt@@ -25,7 +25,6 @@ import kotlin.test.assertTrue import kotlinx.coroutines.runBlocking import org.junit.runner.RunWith import org.robolectric.RobolectricTestRunner-import org.robolectric.annotation.Config /** Scripted localhost SMTP server: greeting, EHLO, AUTH, MAIL/RCPT, DATA, QUIT. */ class FakeSmtpServer(@@ -145,7 +144,6 @@ class FakeSmtpServer( } @RunWith(RobolectricTestRunner::class)-@Config(sdk = [34]) class FakeSmtpServerTest { private lateinit var server: FakeSmtpServer
email/src/test/java/com/vayunmathur/email/imap/ImapMailboxUtf7WireTest.kt
diff --git a/email/src/test/java/com/vayunmathur/email/imap/ImapMailboxUtf7WireTest.kt b/email/src/test/java/com/vayunmathur/email/imap/ImapMailboxUtf7WireTest.ktindex 17c505f493..448584f7a1 100644--- a/email/src/test/java/com/vayunmathur/email/imap/ImapMailboxUtf7WireTest.kt+++ b/email/src/test/java/com/vayunmathur/email/imap/ImapMailboxUtf7WireTest.kt@@ -12,7 +12,6 @@ import kotlin.test.assertTrue import kotlinx.coroutines.runBlocking import org.junit.runner.RunWith import org.robolectric.RobolectricTestRunner-import org.robolectric.annotation.Config /** * Regression: LIST decodes modified UTF-7 mailbox names (RFC 3501 §5.1.3),@@ -22,7 +21,6 @@ import org.robolectric.annotation.Config * sync of a non-ASCII folder failed with NO on real servers. */ @RunWith(RobolectricTestRunner::class)-@Config(sdk = [34]) class ImapMailboxUtf7WireTest { private lateinit var server: FakeImapServer
email/src/test/java/com/vayunmathur/email/imap/ImapParserTest.kt
diff --git a/email/src/test/java/com/vayunmathur/email/imap/ImapParserTest.kt b/email/src/test/java/com/vayunmathur/email/imap/ImapParserTest.ktindex 50017ad105..823ba9dea8 100644--- a/email/src/test/java/com/vayunmathur/email/imap/ImapParserTest.kt+++ b/email/src/test/java/com/vayunmathur/email/imap/ImapParserTest.kt@@ -8,7 +8,6 @@ import kotlin.test.assertNull import kotlin.test.assertTrue import org.junit.runner.RunWith import org.robolectric.RobolectricTestRunner-import org.robolectric.annotation.Config /** * Pins IMAP LIST/FETCH line parsing and modified-UTF7 mailbox decoding against@@ -21,7 +20,6 @@ import org.robolectric.annotation.Config * each test names the wire shape that would expose the regression. */ @RunWith(RobolectricTestRunner::class)-@Config(sdk = [34]) class ImapParserTest { // ---------- parseList ----------
email/src/test/java/com/vayunmathur/email/imap/ImapParserW5Test.kt
diff --git a/email/src/test/java/com/vayunmathur/email/imap/ImapParserW5Test.kt b/email/src/test/java/com/vayunmathur/email/imap/ImapParserW5Test.ktindex 8b44ae0902..d3508acd93 100644--- a/email/src/test/java/com/vayunmathur/email/imap/ImapParserW5Test.kt+++ b/email/src/test/java/com/vayunmathur/email/imap/ImapParserW5Test.kt@@ -6,11 +6,9 @@ import kotlin.test.assertEquals import kotlin.test.assertNull import org.junit.runner.RunWith import org.robolectric.RobolectricTestRunner-import org.robolectric.annotation.Config /** W5: ImapParser LIST/UID/flags/date and modified UTF-7 branches. */ @RunWith(RobolectricTestRunner::class)-@Config(sdk = [34]) class ImapParserW5Test { @Test
email/src/test/java/com/vayunmathur/email/imap/RawConnectionsW5Test.kt
diff --git a/email/src/test/java/com/vayunmathur/email/imap/RawConnectionsW5Test.kt b/email/src/test/java/com/vayunmathur/email/imap/RawConnectionsW5Test.ktindex 9472867b87..35522bc876 100644--- a/email/src/test/java/com/vayunmathur/email/imap/RawConnectionsW5Test.kt+++ b/email/src/test/java/com/vayunmathur/email/imap/RawConnectionsW5Test.kt@@ -16,7 +16,6 @@ import kotlin.test.assertFailsWith import kotlin.test.assertTrue import org.junit.runner.RunWith import org.robolectric.RobolectricTestRunner-import org.robolectric.annotation.Config /** * W5: STARTTLS and XOAUTH2 branches of the raw connections against scripted@@ -24,7 +23,6 @@ import org.robolectric.annotation.Config * TLS, and the XOAUTH2 challenge fallback. */ @RunWith(RobolectricTestRunner::class)-@Config(sdk = [34]) class RawConnectionsW5Test { /** One-shot scripted server: [handler] writes/reads lines on the accepted socket. */
email/src/test/java/com/vayunmathur/email/intents/EmailIntentsTest.kt
diff --git a/email/src/test/java/com/vayunmathur/email/intents/EmailIntentsTest.kt b/email/src/test/java/com/vayunmathur/email/intents/EmailIntentsTest.ktindex b3ca1291aa..35c00c91e6 100644--- a/email/src/test/java/com/vayunmathur/email/intents/EmailIntentsTest.kt+++ b/email/src/test/java/com/vayunmathur/email/intents/EmailIntentsTest.kt@@ -16,7 +16,6 @@ import kotlinx.coroutines.runBlocking import org.junit.runner.RunWith import org.robolectric.Robolectric import org.robolectric.RobolectricTestRunner-import org.robolectric.annotation.Config /** * Assistant intents ([GetRecentIntent] / [SearchIntent]) and the@@ -27,7 +26,6 @@ import org.robolectric.annotation.Config * the snippet length, never raw HTML. */ @RunWith(RobolectricTestRunner::class)-@Config(sdk = [34]) class EmailIntentsTest { private val context get() = ApplicationProvider.getApplicationContext<Application>()
email/src/test/java/com/vayunmathur/email/mime/MimeBuilderTest.kt
diff --git a/email/src/test/java/com/vayunmathur/email/mime/MimeBuilderTest.kt b/email/src/test/java/com/vayunmathur/email/mime/MimeBuilderTest.ktindex 2b9adda8cf..e9b6fd478c 100644--- a/email/src/test/java/com/vayunmathur/email/mime/MimeBuilderTest.kt+++ b/email/src/test/java/com/vayunmathur/email/mime/MimeBuilderTest.kt@@ -9,7 +9,6 @@ import kotlin.test.assertFalse import kotlin.test.assertTrue import org.junit.runner.RunWith import org.robolectric.RobolectricTestRunner-import org.robolectric.annotation.Config /** * Pins MIME message construction against structural assertions (header@@ -21,7 +20,6 @@ import org.robolectric.annotation.Config * multipart framing — so each test asserts the exact wire shape. */ @RunWith(RobolectricTestRunner::class)-@Config(sdk = [34]) class MimeBuilderTest { private val context get() = ApplicationProvider.getApplicationContext<android.content.Context>()
email/src/test/java/com/vayunmathur/email/mime/MimeHeaderUtilsTest.kt
diff --git a/email/src/test/java/com/vayunmathur/email/mime/MimeHeaderUtilsTest.kt b/email/src/test/java/com/vayunmathur/email/mime/MimeHeaderUtilsTest.ktindex 1e5f65863d..f5a58d5885 100644--- a/email/src/test/java/com/vayunmathur/email/mime/MimeHeaderUtilsTest.kt+++ b/email/src/test/java/com/vayunmathur/email/mime/MimeHeaderUtilsTest.kt@@ -6,7 +6,6 @@ import kotlin.test.assertEquals import kotlin.test.assertTrue import org.junit.runner.RunWith import org.robolectric.RobolectricTestRunner-import org.robolectric.annotation.Config /** * Pins header decoding, date parsing, filename sanitizing, multipart@@ -17,7 +16,6 @@ import org.robolectric.annotation.Config * file names, or dropped attachments. */ @RunWith(RobolectricTestRunner::class)-@Config(sdk = [34]) class MimeHeaderUtilsTest { // ---------- decodeHeader (RFC 2047) ----------
email/src/test/java/com/vayunmathur/email/mime/MimeParserRobolectricTest.kt
diff --git a/email/src/test/java/com/vayunmathur/email/mime/MimeParserRobolectricTest.kt b/email/src/test/java/com/vayunmathur/email/mime/MimeParserRobolectricTest.ktindex 1f09fdc101..505445022d 100644--- a/email/src/test/java/com/vayunmathur/email/mime/MimeParserRobolectricTest.kt+++ b/email/src/test/java/com/vayunmathur/email/mime/MimeParserRobolectricTest.kt@@ -11,7 +11,6 @@ import kotlin.test.assertNotNull import kotlin.test.assertTrue import org.junit.runner.RunWith import org.robolectric.RobolectricTestRunner-import org.robolectric.annotation.Config /** * Robolectric paths of [MimeParser]: base64 CTE, RFC2047 header words,@@ -19,7 +18,6 @@ import org.robolectric.annotation.Config * android.util.Base64, so they cannot run as plain host tests. */ @RunWith(RobolectricTestRunner::class)-@Config(sdk = [34]) class MimeParserRobolectricTest { private val context get() = ApplicationProvider.getApplicationContext<Application>()
email/src/test/java/com/vayunmathur/email/platform/AiSummaryHelperTest.kt
diff --git a/email/src/test/java/com/vayunmathur/email/platform/AiSummaryHelperTest.kt b/email/src/test/java/com/vayunmathur/email/platform/AiSummaryHelperTest.ktindex 15ec894b81..f007a64ebc 100644--- a/email/src/test/java/com/vayunmathur/email/platform/AiSummaryHelperTest.kt+++ b/email/src/test/java/com/vayunmathur/email/platform/AiSummaryHelperTest.kt@@ -9,11 +9,9 @@ import kotlin.test.assertFalse import kotlin.test.assertNull import org.junit.runner.RunWith import org.robolectric.RobolectricTestRunner-import org.robolectric.annotation.Config /** [AiSummaryHelper] without OpenAssistant installed: request is a no-op, clear resets state. */ @RunWith(RobolectricTestRunner::class)-@Config(sdk = [34]) class AiSummaryHelperTest { private val context get() = ApplicationProvider.getApplicationContext<Application>()
email/src/test/java/com/vayunmathur/email/platform/AiSummaryInstalledTest.kt
diff --git a/email/src/test/java/com/vayunmathur/email/platform/AiSummaryInstalledTest.kt b/email/src/test/java/com/vayunmathur/email/platform/AiSummaryInstalledTest.ktindex 5a118d3cc6..bb859e52da 100644--- a/email/src/test/java/com/vayunmathur/email/platform/AiSummaryInstalledTest.kt+++ b/email/src/test/java/com/vayunmathur/email/platform/AiSummaryInstalledTest.kt@@ -18,7 +18,6 @@ import org.junit.runner.RunWith import org.robolectric.RobolectricTestRunner import org.robolectric.Shadows import org.robolectric.Shadows.shadowOf-import org.robolectric.annotation.Config /** * [AiSummaryHelper] with OpenAssistant "installed" (fake package in the@@ -30,7 +29,6 @@ import org.robolectric.annotation.Config * not-installed tests. */ @RunWith(RobolectricTestRunner::class)-@Config(sdk = [34]) class AiSummaryInstalledTest { private val context get() = ApplicationProvider.getApplicationContext<Application>()
email/src/test/java/com/vayunmathur/email/platform/AppLifecycleTrackerTest.kt
diff --git a/email/src/test/java/com/vayunmathur/email/platform/AppLifecycleTrackerTest.kt b/email/src/test/java/com/vayunmathur/email/platform/AppLifecycleTrackerTest.ktindex eec6beab17..c4400e03e2 100644--- a/email/src/test/java/com/vayunmathur/email/platform/AppLifecycleTrackerTest.kt+++ b/email/src/test/java/com/vayunmathur/email/platform/AppLifecycleTrackerTest.kt@@ -10,7 +10,6 @@ import kotlin.test.assertFalse import kotlin.test.assertTrue import org.junit.runner.RunWith import org.robolectric.RobolectricTestRunner-import org.robolectric.annotation.Config /** * [AppLifecycleTracker.tryStartIdleIfForeground]: the deferred IDLE restart@@ -18,7 +17,6 @@ import org.robolectric.annotation.Config * successful start must consume the flag so it does not loop. */ @RunWith(RobolectricTestRunner::class)-@Config(sdk = [34]) class AppLifecycleTrackerTest { private val context get() = ApplicationProvider.getApplicationContext<Application>()
email/src/test/java/com/vayunmathur/email/platform/BootReceiverTest.kt
diff --git a/email/src/test/java/com/vayunmathur/email/platform/BootReceiverTest.kt b/email/src/test/java/com/vayunmathur/email/platform/BootReceiverTest.ktindex 02aebbea18..445e6c1051 100644--- a/email/src/test/java/com/vayunmathur/email/platform/BootReceiverTest.kt+++ b/email/src/test/java/com/vayunmathur/email/platform/BootReceiverTest.kt@@ -13,7 +13,6 @@ import kotlin.test.assertFalse import kotlin.test.assertTrue import org.junit.runner.RunWith import org.robolectric.RobolectricTestRunner-import org.robolectric.annotation.Config /** * [BootReceiver]: boot/package-replaced must defer the IDLE start via the@@ -21,7 +20,6 @@ import org.robolectric.annotation.Config * unrelated broadcasts must do nothing. */ @RunWith(RobolectricTestRunner::class)-@Config(sdk = [34]) class BootReceiverTest { private val context get() = ApplicationProvider.getApplicationContext<Application>()
email/src/test/java/com/vayunmathur/email/platform/EmailNotificationsTest.kt
diff --git a/email/src/test/java/com/vayunmathur/email/platform/EmailNotificationsTest.kt b/email/src/test/java/com/vayunmathur/email/platform/EmailNotificationsTest.ktindex 0c335311e6..3f1a3b72db 100644--- a/email/src/test/java/com/vayunmathur/email/platform/EmailNotificationsTest.kt+++ b/email/src/test/java/com/vayunmathur/email/platform/EmailNotificationsTest.kt@@ -11,11 +11,9 @@ import kotlin.test.assertTrue import org.junit.runner.RunWith import org.robolectric.RobolectricTestRunner import org.robolectric.Shadows-import org.robolectric.annotation.Config /** [EmailNotifications]: empty input posts nothing; messages post per-account channel notifications. */ @RunWith(RobolectricTestRunner::class)-@Config(sdk = [34]) class EmailNotificationsTest { private val context get() = ApplicationProvider.getApplicationContext<Application>()
email/src/test/java/com/vayunmathur/email/platform/ResolveAuthTest.kt
diff --git a/email/src/test/java/com/vayunmathur/email/platform/ResolveAuthTest.kt b/email/src/test/java/com/vayunmathur/email/platform/ResolveAuthTest.ktindex 44467d2897..13709edd19 100644--- a/email/src/test/java/com/vayunmathur/email/platform/ResolveAuthTest.kt+++ b/email/src/test/java/com/vayunmathur/email/platform/ResolveAuthTest.kt@@ -9,11 +9,9 @@ import kotlin.test.assertFailsWith import kotlin.test.assertTrue import org.junit.runner.RunWith import org.robolectric.RobolectricTestRunner-import org.robolectric.annotation.Config /** Error paths of [resolveAuth]: missing credentials must fail loudly, never send empty auth. */ @RunWith(RobolectricTestRunner::class)-@Config(sdk = [34]) class ResolveAuthTest { private val context get() = ApplicationProvider.getApplicationContext<Application>()
email/src/test/java/com/vayunmathur/email/platform/StartupGuardTest.kt
diff --git a/email/src/test/java/com/vayunmathur/email/platform/StartupGuardTest.kt b/email/src/test/java/com/vayunmathur/email/platform/StartupGuardTest.ktindex 1a8eaa469f..c89c28fbdc 100644--- a/email/src/test/java/com/vayunmathur/email/platform/StartupGuardTest.kt+++ b/email/src/test/java/com/vayunmathur/email/platform/StartupGuardTest.kt@@ -24,7 +24,6 @@ import kotlinx.coroutines.delay import kotlinx.coroutines.runBlocking import org.junit.runner.RunWith import org.robolectric.RobolectricTestRunner-import org.robolectric.annotation.Config /** * Regression tests for #939 ("crashes on startup", Android 15 device):@@ -41,7 +40,6 @@ import org.robolectric.annotation.Config * still run, and the one-time backfills survive a broken database. */ @RunWith(RobolectricTestRunner::class)-@Config(sdk = [34]) class StartupGuardTest { private val context get() = ApplicationProvider.getApplicationContext<Application>()
email/src/test/java/com/vayunmathur/email/screens/EmailViewModelLocalTest.kt
diff --git a/email/src/test/java/com/vayunmathur/email/screens/EmailViewModelLocalTest.kt b/email/src/test/java/com/vayunmathur/email/screens/EmailViewModelLocalTest.ktindex 9c73bc7060..013fa72f0e 100644--- a/email/src/test/java/com/vayunmathur/email/screens/EmailViewModelLocalTest.kt+++ b/email/src/test/java/com/vayunmathur/email/screens/EmailViewModelLocalTest.kt@@ -22,7 +22,6 @@ import kotlin.test.assertNull import org.junit.runner.RunWith import org.robolectric.RobolectricTestRunner import org.robolectric.Shadows.shadowOf-import org.robolectric.annotation.Config /** * Drives the real [EmailViewModel]'s local-only paths against a pre-seeded@@ -32,7 +31,6 @@ import org.robolectric.annotation.Config * rows and flows. */ @RunWith(RobolectricTestRunner::class)-@Config(sdk = [34]) class EmailViewModelLocalTest { private val context get() = ApplicationProvider.getApplicationContext<Application>()
email/src/test/java/com/vayunmathur/email/screens/EmailViewModelScreensTest.kt
diff --git a/email/src/test/java/com/vayunmathur/email/screens/EmailViewModelScreensTest.kt b/email/src/test/java/com/vayunmathur/email/screens/EmailViewModelScreensTest.ktindex bc08ad3b03..06875af8c4 100644--- a/email/src/test/java/com/vayunmathur/email/screens/EmailViewModelScreensTest.kt+++ b/email/src/test/java/com/vayunmathur/email/screens/EmailViewModelScreensTest.kt@@ -35,7 +35,6 @@ import kotlin.test.assertEquals import kotlin.test.assertTrue import org.junit.runner.RunWith import org.robolectric.RobolectricTestRunner-import org.robolectric.annotation.Config /** * Drives the real [EmailViewModel] against a pre-seeded in-memory database@@ -47,7 +46,6 @@ import org.robolectric.annotation.Config * a missed block leaks the sender back into the inbox. */ @RunWith(RobolectricTestRunner::class)-@Config(sdk = [34]) class EmailViewModelScreensTest { @get:Rule
email/src/test/java/com/vayunmathur/email/screens/NavigationTest.kt
diff --git a/email/src/test/java/com/vayunmathur/email/screens/NavigationTest.kt b/email/src/test/java/com/vayunmathur/email/screens/NavigationTest.ktindex ade8552219..b3087cddbb 100644--- a/email/src/test/java/com/vayunmathur/email/screens/NavigationTest.kt+++ b/email/src/test/java/com/vayunmathur/email/screens/NavigationTest.kt@@ -28,14 +28,12 @@ import kotlinx.coroutines.runBlocking import org.junit.Rule import org.junit.runner.RunWith import org.robolectric.RobolectricTestRunner-import org.robolectric.annotation.Config /** * Real [Navigation] graph under Robolectric: starts on the message list, and * an [IntentState] route (the deep-link/share entry point) pushes its screen. */ @RunWith(RobolectricTestRunner::class)-@Config(sdk = [34]) class NavigationTest { @get:Rule
email/src/test/java/com/vayunmathur/email/ui/AddAccountPersistTest.kt
diff --git a/email/src/test/java/com/vayunmathur/email/ui/AddAccountPersistTest.kt b/email/src/test/java/com/vayunmathur/email/ui/AddAccountPersistTest.ktindex b22e34024a..5de2d0af26 100644--- a/email/src/test/java/com/vayunmathur/email/ui/AddAccountPersistTest.kt+++ b/email/src/test/java/com/vayunmathur/email/ui/AddAccountPersistTest.kt@@ -21,7 +21,6 @@ import kotlin.test.assertTrue import kotlinx.coroutines.runBlocking import org.junit.runner.RunWith import org.robolectric.RobolectricTestRunner-import org.robolectric.annotation.Config /** * [testAndPersistAccount]: the add-account submit path must prove the@@ -31,7 +30,6 @@ import org.robolectric.annotation.Config * of saving a dead account. */ @RunWith(RobolectricTestRunner::class)-@Config(sdk = [34]) class AddAccountPersistTest { private val context get() = ApplicationProvider.getApplicationContext<Application>()
email/src/test/java/com/vayunmathur/email/ui/AddAccountPersistW5Test.kt
diff --git a/email/src/test/java/com/vayunmathur/email/ui/AddAccountPersistW5Test.kt b/email/src/test/java/com/vayunmathur/email/ui/AddAccountPersistW5Test.ktindex dcf9a86030..9f5958db81 100644--- a/email/src/test/java/com/vayunmathur/email/ui/AddAccountPersistW5Test.kt+++ b/email/src/test/java/com/vayunmathur/email/ui/AddAccountPersistW5Test.kt@@ -19,11 +19,9 @@ import kotlin.test.assertTrue import kotlinx.coroutines.runBlocking import org.junit.runner.RunWith import org.robolectric.RobolectricTestRunner-import org.robolectric.annotation.Config /** W5: testAndPersistAccount success/auth-failure/unreachable branches. */ @RunWith(RobolectricTestRunner::class)-@Config(sdk = [34]) class AddAccountPersistW5Test { private val context get() = ApplicationProvider.getApplicationContext<Application>() private lateinit var db: EmailDatabase
email/src/test/java/com/vayunmathur/email/ui/AddAccountScreenTest.kt
diff --git a/email/src/test/java/com/vayunmathur/email/ui/AddAccountScreenTest.kt b/email/src/test/java/com/vayunmathur/email/ui/AddAccountScreenTest.ktindex 3f727b7fa0..2f5d64c657 100644--- a/email/src/test/java/com/vayunmathur/email/ui/AddAccountScreenTest.kt+++ b/email/src/test/java/com/vayunmathur/email/ui/AddAccountScreenTest.kt@@ -16,7 +16,6 @@ import kotlin.test.assertEquals import org.junit.Rule import org.junit.runner.RunWith import org.robolectric.RobolectricTestRunner-import org.robolectric.annotation.Config /** * Drives the real add-account destinations through provider picking and@@ -29,7 +28,6 @@ import org.robolectric.annotation.Config * forms. Each test asserts the navigated form or the guard state. */ @RunWith(RobolectricTestRunner::class)-@Config(sdk = [34]) class AddAccountScreenTest { @get:Rule
email/src/test/java/com/vayunmathur/email/ui/AddAccountSubmitTest.kt
diff --git a/email/src/test/java/com/vayunmathur/email/ui/AddAccountSubmitTest.kt b/email/src/test/java/com/vayunmathur/email/ui/AddAccountSubmitTest.ktindex ff5ecea065..df041a812b 100644--- a/email/src/test/java/com/vayunmathur/email/ui/AddAccountSubmitTest.kt+++ b/email/src/test/java/com/vayunmathur/email/ui/AddAccountSubmitTest.kt@@ -36,7 +36,6 @@ import org.junit.runner.RunWith import org.robolectric.RobolectricTestRunner import org.robolectric.Shadows import org.robolectric.Shadows.shadowOf-import org.robolectric.annotation.Config /** * Add-account submit flows: the custom-provider form must test@@ -46,7 +45,6 @@ import org.robolectric.annotation.Config * the PKCE flow (session stored, Microsoft authorize intent launched). */ @RunWith(RobolectricTestRunner::class)-@Config(sdk = [34]) class AddAccountSubmitTest { @get:Rule
email/src/test/java/com/vayunmathur/email/ui/AttachmentItemTest.kt
diff --git a/email/src/test/java/com/vayunmathur/email/ui/AttachmentItemTest.kt b/email/src/test/java/com/vayunmathur/email/ui/AttachmentItemTest.ktindex ebd62e8d96..8e9cc7ad32 100644--- a/email/src/test/java/com/vayunmathur/email/ui/AttachmentItemTest.kt+++ b/email/src/test/java/com/vayunmathur/email/ui/AttachmentItemTest.kt@@ -21,7 +21,6 @@ import org.junit.Rule import org.junit.runner.RunWith import org.robolectric.RobolectricTestRunner import org.robolectric.Shadows-import org.robolectric.annotation.Config /** * Renders the real [AttachmentItem]: a stored local URI offers Open, a remote@@ -30,7 +29,6 @@ import org.robolectric.annotation.Config * its exact affordance and callback. */ @RunWith(RobolectricTestRunner::class)-@Config(sdk = [34]) class AttachmentItemTest { @get:Rule
email/src/test/java/com/vayunmathur/email/ui/ComposerAndAccountW5Test.kt
diff --git a/email/src/test/java/com/vayunmathur/email/ui/ComposerAndAccountW5Test.kt b/email/src/test/java/com/vayunmathur/email/ui/ComposerAndAccountW5Test.ktindex 722129e761..c9887c25fd 100644--- a/email/src/test/java/com/vayunmathur/email/ui/ComposerAndAccountW5Test.kt+++ b/email/src/test/java/com/vayunmathur/email/ui/ComposerAndAccountW5Test.kt@@ -23,11 +23,9 @@ import kotlinx.coroutines.runBlocking import org.junit.Rule import org.junit.runner.RunWith import org.robolectric.RobolectricTestRunner-import org.robolectric.annotation.Config /** W5: composer account picker / cc-bcc / schedule, and the AddAccount OAuth + password forms. */ @RunWith(RobolectricTestRunner::class)-@Config(sdk = [34]) class ComposerAndAccountW5Test { @get:Rule val rule = createComposeRule() private val context get() = ApplicationProvider.getApplicationContext<Application>()
email/src/test/java/com/vayunmathur/email/ui/ComposerAttachmentsTest.kt
diff --git a/email/src/test/java/com/vayunmathur/email/ui/ComposerAttachmentsTest.kt b/email/src/test/java/com/vayunmathur/email/ui/ComposerAttachmentsTest.ktindex 170df55ba5..4a7a16bcd2 100644--- a/email/src/test/java/com/vayunmathur/email/ui/ComposerAttachmentsTest.kt+++ b/email/src/test/java/com/vayunmathur/email/ui/ComposerAttachmentsTest.kt@@ -21,7 +21,6 @@ import kotlin.test.assertTrue import org.junit.Rule import org.junit.runner.RunWith import org.robolectric.RobolectricTestRunner-import org.robolectric.annotation.Config import org.robolectric.shadows.ShadowContentResolver /**@@ -31,7 +30,6 @@ import org.robolectric.shadows.ShadowContentResolver * exactly. */ @RunWith(RobolectricTestRunner::class)-@Config(sdk = [34]) class ComposerAttachmentsTest { @get:Rule
email/src/test/java/com/vayunmathur/email/ui/ComposerHeaderTest.kt
diff --git a/email/src/test/java/com/vayunmathur/email/ui/ComposerHeaderTest.kt b/email/src/test/java/com/vayunmathur/email/ui/ComposerHeaderTest.ktindex 538f165ec0..90bc4b9248 100644--- a/email/src/test/java/com/vayunmathur/email/ui/ComposerHeaderTest.kt+++ b/email/src/test/java/com/vayunmathur/email/ui/ComposerHeaderTest.kt@@ -15,7 +15,6 @@ import kotlin.test.assertTrue import org.junit.Rule import org.junit.runner.RunWith import org.robolectric.RobolectricTestRunner-import org.robolectric.annotation.Config /** * Renders the real [ComposerHeaderSection] with canned accounts: the sender@@ -23,7 +22,6 @@ import org.robolectric.annotation.Config * silently sends mail from the wrong account or drops recipients. */ @RunWith(RobolectricTestRunner::class)-@Config(sdk = [34]) class ComposerHeaderTest { @get:Rule
email/src/test/java/com/vayunmathur/email/ui/ComposerLaunchersW5Test.kt
diff --git a/email/src/test/java/com/vayunmathur/email/ui/ComposerLaunchersW5Test.kt b/email/src/test/java/com/vayunmathur/email/ui/ComposerLaunchersW5Test.ktindex 04292c6ceb..2a0eb6652b 100644--- a/email/src/test/java/com/vayunmathur/email/ui/ComposerLaunchersW5Test.kt+++ b/email/src/test/java/com/vayunmathur/email/ui/ComposerLaunchersW5Test.kt@@ -43,7 +43,6 @@ import kotlinx.coroutines.runBlocking import org.junit.Rule import org.junit.runner.RunWith import org.robolectric.RobolectricTestRunner-import org.robolectric.annotation.Config import org.robolectric.shadows.ShadowContentResolver /** Answers each launcher with a contract-appropriate result, immediately. */@@ -76,7 +75,6 @@ private class ComposerOwner(imageUri: Uri) : ActivityResultRegistryOwner { /** W5: composer attachment/inline/contact launchers, signature and draft autosave. */ @RunWith(RobolectricTestRunner::class)-@Config(sdk = [34]) class ComposerLaunchersW5Test { @get:Rule val rule = createComposeRule() private val context get() = ApplicationProvider.getApplicationContext<Application>()
email/src/test/java/com/vayunmathur/email/ui/ComposerScreenTest.kt
diff --git a/email/src/test/java/com/vayunmathur/email/ui/ComposerScreenTest.kt b/email/src/test/java/com/vayunmathur/email/ui/ComposerScreenTest.ktindex 2c8734554c..8620ad7b4a 100644--- a/email/src/test/java/com/vayunmathur/email/ui/ComposerScreenTest.kt+++ b/email/src/test/java/com/vayunmathur/email/ui/ComposerScreenTest.kt@@ -25,7 +25,6 @@ import kotlin.test.assertEquals import org.junit.Rule import org.junit.runner.RunWith import org.robolectric.RobolectricTestRunner-import org.robolectric.annotation.Config /** * Renders the real [ComposerScreen] against a [EmailViewModel] backed by a@@ -35,7 +34,6 @@ import org.robolectric.annotation.Config * field or the recorded effect. */ @RunWith(RobolectricTestRunner::class)-@Config(sdk = [34]) class ComposerScreenTest { @get:Rule
email/src/test/java/com/vayunmathur/email/ui/ComposerSendTest.kt
diff --git a/email/src/test/java/com/vayunmathur/email/ui/ComposerSendTest.kt b/email/src/test/java/com/vayunmathur/email/ui/ComposerSendTest.ktindex ca0a9ecc46..f99271d7d0 100644--- a/email/src/test/java/com/vayunmathur/email/ui/ComposerSendTest.kt+++ b/email/src/test/java/com/vayunmathur/email/ui/ComposerSendTest.kt@@ -29,7 +29,6 @@ import org.junit.Rule import org.junit.runner.RunWith import org.robolectric.RobolectricTestRunner import org.robolectric.Shadows.shadowOf-import org.robolectric.annotation.Config /** * [ComposerScreen] send paths against the fake SMTP server: Send must@@ -38,7 +37,6 @@ import org.robolectric.annotation.Config * dead server must land the mail in the outbox instead of losing it. */ @RunWith(RobolectricTestRunner::class)-@Config(sdk = [34]) class ComposerSendTest { @get:Rule
email/src/test/java/com/vayunmathur/email/ui/ComposerToolbarTest.kt
diff --git a/email/src/test/java/com/vayunmathur/email/ui/ComposerToolbarTest.kt b/email/src/test/java/com/vayunmathur/email/ui/ComposerToolbarTest.ktindex 798e71c8c6..6d58e57252 100644--- a/email/src/test/java/com/vayunmathur/email/ui/ComposerToolbarTest.kt+++ b/email/src/test/java/com/vayunmathur/email/ui/ComposerToolbarTest.kt@@ -16,7 +16,6 @@ import kotlin.test.assertNull import org.junit.Rule import org.junit.runner.RunWith import org.robolectric.RobolectricTestRunner-import org.robolectric.annotation.Config /** * Renders the real [EmailComposerFormatToolbar] with a detached controller@@ -25,7 +24,6 @@ import org.robolectric.annotation.Config * the formatting feature, so each test asserts the menu/dialog it opens. */ @RunWith(RobolectricTestRunner::class)-@Config(sdk = [34]) class ComposerToolbarTest { @get:Rule
email/src/test/java/com/vayunmathur/email/ui/EmailDrawerContentTest.kt
diff --git a/email/src/test/java/com/vayunmathur/email/ui/EmailDrawerContentTest.kt b/email/src/test/java/com/vayunmathur/email/ui/EmailDrawerContentTest.ktindex 288e6767a6..e749c37f38 100644--- a/email/src/test/java/com/vayunmathur/email/ui/EmailDrawerContentTest.kt+++ b/email/src/test/java/com/vayunmathur/email/ui/EmailDrawerContentTest.kt@@ -12,7 +12,6 @@ import kotlin.test.assertEquals import org.junit.Rule import org.junit.runner.RunWith import org.robolectric.RobolectricTestRunner-import org.robolectric.annotation.Config /** * Renders the real [EmailDrawerContent] with literal data (it takes no@@ -22,7 +21,6 @@ import org.robolectric.annotation.Config * miswired lambda strands the user on the inbox with no way to reach them. */ @RunWith(RobolectricTestRunner::class)-@Config(sdk = [34]) class EmailDrawerContentTest { @get:Rule
email/src/test/java/com/vayunmathur/email/ui/EmailUiHelpersTest.kt
diff --git a/email/src/test/java/com/vayunmathur/email/ui/EmailUiHelpersTest.kt b/email/src/test/java/com/vayunmathur/email/ui/EmailUiHelpersTest.ktindex 97d496cc01..e0f1d8f8ef 100644--- a/email/src/test/java/com/vayunmathur/email/ui/EmailUiHelpersTest.kt+++ b/email/src/test/java/com/vayunmathur/email/ui/EmailUiHelpersTest.kt@@ -13,7 +13,6 @@ import kotlin.test.assertEquals import kotlin.test.assertNull import org.junit.runner.RunWith import org.robolectric.RobolectricTestRunner-import org.robolectric.annotation.Config import org.robolectric.shadows.ShadowContentResolver /**@@ -24,7 +23,6 @@ import org.robolectric.shadows.ShadowContentResolver * composer. */ @RunWith(RobolectricTestRunner::class)-@Config(sdk = [34]) class EmailUiHelpersTest { private val context get() = ApplicationProvider.getApplicationContext<Application>()
email/src/test/java/com/vayunmathur/email/ui/EmlViewerScreenTest.kt
diff --git a/email/src/test/java/com/vayunmathur/email/ui/EmlViewerScreenTest.kt b/email/src/test/java/com/vayunmathur/email/ui/EmlViewerScreenTest.ktindex dbbcaa95c1..596bbfcc30 100644--- a/email/src/test/java/com/vayunmathur/email/ui/EmlViewerScreenTest.kt+++ b/email/src/test/java/com/vayunmathur/email/ui/EmlViewerScreenTest.kt@@ -12,7 +12,6 @@ import org.junit.Rule import org.junit.runner.RunWith import org.robolectric.RobolectricTestRunner import com.vayunmathur.testsupport.awaitSemantics-import org.robolectric.annotation.Config /** * Renders the real [EmlViewerScreen] with an unopenable URI: the parse fails@@ -22,7 +21,6 @@ import org.robolectric.annotation.Config * in [EmlViewerSuccessTest]. */ @RunWith(RobolectricTestRunner::class)-@Config(sdk = [34]) class EmlViewerScreenTest { @get:Rule
email/src/test/java/com/vayunmathur/email/ui/EmlViewerSuccessTest.kt
diff --git a/email/src/test/java/com/vayunmathur/email/ui/EmlViewerSuccessTest.kt b/email/src/test/java/com/vayunmathur/email/ui/EmlViewerSuccessTest.ktindex 8b4c8f7c5f..ff30b12ec4 100644--- a/email/src/test/java/com/vayunmathur/email/ui/EmlViewerSuccessTest.kt+++ b/email/src/test/java/com/vayunmathur/email/ui/EmlViewerSuccessTest.kt@@ -21,7 +21,6 @@ import org.junit.Rule import org.junit.runner.RunWith import org.robolectric.RobolectricTestRunner import com.vayunmathur.testsupport.awaitSemantics-import org.robolectric.annotation.Config /** * [EmlViewerScreen] success path in its own sandbox: a parseable .eml@@ -32,7 +31,6 @@ import org.robolectric.annotation.Config * intermittently never lands. */ @RunWith(RobolectricTestRunner::class)-@Config(sdk = [34]) class EmlViewerSuccessTest { @get:Rule
email/src/test/java/com/vayunmathur/email/ui/MessageListScreenTest.kt
diff --git a/email/src/test/java/com/vayunmathur/email/ui/MessageListScreenTest.kt b/email/src/test/java/com/vayunmathur/email/ui/MessageListScreenTest.ktindex 9a60a3b3cc..826f8074a8 100644--- a/email/src/test/java/com/vayunmathur/email/ui/MessageListScreenTest.kt+++ b/email/src/test/java/com/vayunmathur/email/ui/MessageListScreenTest.kt@@ -16,7 +16,6 @@ import kotlin.test.assertTrue import org.junit.Rule import org.junit.runner.RunWith import org.robolectric.RobolectricTestRunner-import org.robolectric.annotation.Config /** * Renders the real [MessageListScreen] with canned [MessageListUiState] and a@@ -28,7 +27,6 @@ import org.robolectric.annotation.Config * callback it should have fired. */ @RunWith(RobolectricTestRunner::class)-@Config(sdk = [34]) class MessageListScreenTest { @get:Rule
email/src/test/java/com/vayunmathur/email/ui/MessageThreadScreenTest.kt
diff --git a/email/src/test/java/com/vayunmathur/email/ui/MessageThreadScreenTest.kt b/email/src/test/java/com/vayunmathur/email/ui/MessageThreadScreenTest.ktindex 94b8e07b62..18fddd4f12 100644--- a/email/src/test/java/com/vayunmathur/email/ui/MessageThreadScreenTest.kt+++ b/email/src/test/java/com/vayunmathur/email/ui/MessageThreadScreenTest.kt@@ -24,7 +24,6 @@ import org.junit.Rule import org.junit.runner.RunWith import org.robolectric.RobolectricTestRunner import org.robolectric.Shadows-import org.robolectric.annotation.Config /** * Renders the real [MessageThreadScreen]/[MessageItem] with canned messages@@ -36,7 +35,6 @@ import org.robolectric.annotation.Config * recorded call. */ @RunWith(RobolectricTestRunner::class)-@Config(sdk = [34]) class MessageThreadScreenTest { @get:Rule
email/src/test/java/com/vayunmathur/email/ui/OAuthActivityTest.kt
diff --git a/email/src/test/java/com/vayunmathur/email/ui/OAuthActivityTest.kt b/email/src/test/java/com/vayunmathur/email/ui/OAuthActivityTest.ktindex d8d81fb2a0..2d46b01426 100644--- a/email/src/test/java/com/vayunmathur/email/ui/OAuthActivityTest.kt+++ b/email/src/test/java/com/vayunmathur/email/ui/OAuthActivityTest.kt@@ -8,14 +8,12 @@ import org.junit.runner.RunWith import org.robolectric.Robolectric import org.robolectric.RobolectricTestRunner import org.robolectric.Shadows-import org.robolectric.annotation.Config /** * [OAuthActivity]: a redirect with no data finishes immediately; an error * redirect completes (failure, no PKCE session) and hands back to MainActivity. */ @RunWith(RobolectricTestRunner::class)-@Config(sdk = [34]) class OAuthActivityTest { @Test
email/src/test/java/com/vayunmathur/email/ui/ReceivedMailJavaScriptTest.kt
diff --git a/email/src/test/java/com/vayunmathur/email/ui/ReceivedMailJavaScriptTest.kt b/email/src/test/java/com/vayunmathur/email/ui/ReceivedMailJavaScriptTest.ktindex c35e112897..0884e13911 100644--- a/email/src/test/java/com/vayunmathur/email/ui/ReceivedMailJavaScriptTest.kt+++ b/email/src/test/java/com/vayunmathur/email/ui/ReceivedMailJavaScriptTest.kt@@ -16,7 +16,6 @@ import kotlin.test.assertFalse import org.junit.Rule import org.junit.runner.RunWith import org.robolectric.RobolectricTestRunner-import org.robolectric.annotation.Config /** * Received mail is untrusted, so the thread screen must render its HTML with@@ -25,7 +24,6 @@ import org.robolectric.annotation.Config * file-backed parse is reliable in. */ @RunWith(RobolectricTestRunner::class)-@Config(sdk = [34]) class ReceivedMailJavaScriptTest { @get:Rule
email/src/test/java/com/vayunmathur/email/widget/EmailWidgetDataTest.kt
diff --git a/email/src/test/java/com/vayunmathur/email/widget/EmailWidgetDataTest.kt b/email/src/test/java/com/vayunmathur/email/widget/EmailWidgetDataTest.ktindex 7fd3d3baa8..cfc9c5b948 100644--- a/email/src/test/java/com/vayunmathur/email/widget/EmailWidgetDataTest.kt+++ b/email/src/test/java/com/vayunmathur/email/widget/EmailWidgetDataTest.kt@@ -20,7 +20,6 @@ import kotlin.test.assertTrue import kotlinx.coroutines.runBlocking import org.junit.runner.RunWith import org.robolectric.RobolectricTestRunner-import org.robolectric.annotation.Config /** * [EmailWidget] data layer and Glance layout: preview data is the fixed@@ -30,7 +29,6 @@ import org.robolectric.annotation.Config * layout shows subject/sender/snippet rows or the empty state. */ @RunWith(RobolectricTestRunner::class)-@Config(sdk = [34]) class EmailWidgetDataTest { private val context get() = ApplicationProvider.getApplicationContext<Application>()