The send is being called by my SUT and the test is...
# spek
d
The send is being called by my SUT and the test is on the return of the function calling send in the SUT.
k
I am not sure if I understand you correctly and I don’t know Vert.x but can’t you just mock the object which has this
send
method and return a mock from it, which will return you a message you want
If it is not the case can you share a snippet of the test code?
d
If you look at the stackoverflow, that's what I'm trying to do -- but it's not working.
k
But what you mean by ‘not working’, any errors?
d
No, my test just freezes and doesn't continue