mkrussel
06/29/2021, 1:16 AMio.mockk.MockKException: can't find property workerHandler for dynamic property get
Mattia Tommasone
06/29/2021, 8:23 AMmockkObject(GeoJsonSource.Companion, recordPrivateCalls = true)
mkrussel
06/29/2021, 11:17 AMMissing mocked calls inside every { ... } block: make sure the object inside the block is a mock
which is what I got before adding the true
argument.mainHandler
that fails, The workerHandler
passes. Looking at the decompiled code, the mainHandler
is turned into a static field of the GeoJsonSource
class and there is no getter in the Companion
object.