I have
Somefun(){
mockedService.execute(()->{
//function body
})
}
So I want to run the execute the the method inside the mock. How can I do so? I figured out that somehow if I capture the arguments of this mock (which is a function) and execute it, my work would be done. Is there any way to achieve this? Or some other way. Thanks!
It would look something like this: