Hi y'all, I have a problem, so I asked in stackove...
# android
m
Hi y'all, I have a problem, so I asked in stackoverflow. Could you help me? Thank you https://stackoverflow.com/questions/61199571/how-to-test-lambda-func-with-mockito-on-android
r
Can it be related to you having a nullable mock
authenticationServiceMock
?
r
Yep def is related to that. thats ment to be a nonull, because your calling the function within the context of verify . try !!
m
But I created that mock like this
Copy code
@Mock private lateinit var authenticationServiceMock
r
OK, try removing question mark
verify(authenticationServiceMock)?
(or just to test - make the extension method extend nullable by adding a question mark)
m
I removed
Copy code
verify(authenticationService).login(credential, responseCaptor.capture())
I am still getting this error
r
­čĄö