<Mockk android.graphics.Rect> I'm trying to mock t...
# stackoverflow
u
Mockk android.graphics.Rect I'm trying to mock the top, left, bottom, right properties inside android.graphics.Rect but I always get the error: io.mockk.MockKException: Missing mocked calls inside every { ... } block: make sure the object inside the block is a mock I've tried several techniques, but they all produce the above error message: val rectMock = mockk() every { rectMock.left } returns 123 every { rectMock.left } propertyType Int::class returns 123 every { rectMock getProperty "left" } returns 123