Join Slack
Powered by
Is it possible to mock extension function using Mo...
# announcements
r
rrader
05/30/2017, 2:40 PM
Is it possible to mock extension function using Mockito?
stackoverflow
3
d
diego-gomez-olvera
05/30/2017, 3:13 PM
rrader: A extension function is equivalent to a
static
method, so I’d say that it is not possible now
diego-gomez-olvera
05/30/2017, 3:15 PM
If it needs mocking, maybe it is being misused
https://www.philosophicalhacker.com/post/how-to-abuse-kotlin-extension-functions/
💯 1
5
Views
Open in Slack
Previous
Next