mirror of
https://github.com/pezkuwichain/pezkuwi-wallet-android.git
synced 2026-07-22 20:45:53 +00:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user