mirror of
https://github.com/pezkuwichain/pezkuwi-wallet-android.git
synced 2026-07-22 19:35:51 +00:00
cc5d00c4ab
Switching eq/any/argThat to the raw org.mockito.Mockito statics did not avoid the 'eq(...) must not be null' crash (it moved from the @Test bodies to the shared @Before setup(), since JUnit's @Before runs before every test and failed first there) - Mockito.eq()/any() genuinely return null regardless of which Kotlin entry point calls them, and that null still gets checked once it flows into a Kotlin non-null-typed parameter downstream. Local wrappers now guarantee a non-null return instead: eq() falls back to the real passed-in value (harmless - the matcher is already recorded on Mockito's thread-local stack by then), any()/argThat() return an unchecked-cast dummy, mirroring mockito-kotlin's own internal implementation of the same helpers.