fix: enable returnDefaultValues for feature-account-impl unit tests

Log.d/Log.e added to TronAddressBackfillMigration throw 'Method ... not
mocked' in plain JVM unit tests without this - the framework's own stubs
are meant to be configured this way for exactly this case, not worked
around by avoiding Log calls in production code.
This commit is contained in:
2026-07-10 16:11:15 -07:00
parent 29395576a3
commit 5f5f74989a
+10
View File
@@ -13,6 +13,16 @@ android {
buildFeatures {
viewBinding true
}
testOptions {
unitTests {
// android.util.Log.* throws "Method ... not mocked" by default in plain JVM unit tests (no real
// Android framework, no Robolectric) - TronAddressBackfillMigrationTest is the first test in this
// module to exercise code that calls Log.d/Log.e. This makes those stubbed calls return harmless
// defaults instead of throwing, which is what the framework's own stubs are meant for in this context.
returnDefaultValues = true
}
}
}
dependencies {