When I use mockito to mock one of the java classes...
# android
r
When I use mockito to mock one of the java classes in kotlin test . It doesn’t look like it is mocking. Anyone else had similar?
g
Please give us more information about you problem, what does it mean doesn't look like it is mocking"
r
val someSampleObj = mock(samplejava::class.java)
val anotherSampleObj = mock(anotherJava::class.java)
g
So, what's happening in this case?
r
`when`(anotherSampleObj.getSomeInfo).thenReturn(someSampleObject)
is not working
tobe consise Mock inside a mock
deep down