mirror of
https://github.com/pezkuwichain/pezkuwi-wallet-android.git
synced 2026-07-23 01:25:54 +00:00
a8d2636f66
Root cause of 'eq(...) must not be null' NPE: test_shared's eq()/any()/ argThat() are thin Kotlin wrappers with a declared non-null generic return type T. Mockito.eq()/any() genuinely return null at runtime (that's how their matcher-stack recording works) - fine when called directly from Kotlin (a raw Java static call's return is a platform type, no null-check inserted), but going through a Kotlin-declared wrapper whose T infers as non-null at the call site (e.g. eq(baseUrl: String) here) gets a compiler-inserted null-check on the wrapper's return, which then fires. Scoped this fix to this test file only rather than touching test_shared's shared implementation, which every other module's tests also depend on.