I read this post , but my problem is that my myFunction returns void instead of Object. So I get errors in
when(mock.myFunction(anyString()))
speaking
when (java.lang.Void) in Mockito cannot be applied to (void)
How can I solve this problem?
java mockito
goldfrapp04
source share