Join Slack
The send is being called by my SUT and the test is on the return of the function calling send in the...
# spek
d
dave08
09/28/2017, 1:40 PM
The send is being called by my SUT and the test is on the return of the function calling send in the SUT.
k
kasper.kondzielski
09/28/2017, 2:31 PM
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
kasper.kondzielski
09/28/2017, 2:32 PM
If it is not the case can you share a snippet of the test code?
d
dave08
09/28/2017, 3:09 PM
If you look at the stackoverflow, that's what I'm trying to do -- but it's not working.
k
kasper.kondzielski
09/28/2017, 3:29 PM
But what you mean by ‘not working’, any errors?
d
dave08
09/28/2017, 3:39 PM
No, my test just freezes and doesn't continue
6
Views
Open in Slack
Previous
Next
kotlinlang
A modern programming language that makes developers happier.
Powered by