Closed GoogleCodeExporter closed 9 years ago
First, check out if client.get() is not final.
I'll try to reproduce it to figure out why this exception is thrown.
Original comment by szcze...@gmail.com
on 1 Apr 2009 at 1:34
I'm not sure why there's a 'cannot stub a void method' exception. Are you sure
this
is the exact code?
Original comment by szcze...@gmail.com
on 1 Apr 2009 at 2:21
the get method is indeed final. But the call within is to a an abstract method
handle
(..). Is there way to mock that call ??
Original comment by HvdSch...@gmail.com
on 1 Apr 2009 at 3:11
Yes, the code is correct. The client code calls within to it's parent who has an
abstract method --> public abstract void handle(Request request, Response
response)
Original comment by HvdSch...@gmail.com
on 1 Apr 2009 at 3:17
I guess there is no way to test final methods. This issue can be closed for my
part
Original comment by HvdSch...@gmail.com
on 2 Apr 2009 at 7:44
That's true, Mockito doesn't do final methods.
Original comment by szcze...@gmail.com
on 2 Apr 2009 at 8:27
Original issue reported on code.google.com by
HvdSch...@gmail.com
on 1 Apr 2009 at 12:09