Closed GoogleCodeExporter closed 8 years ago
Make the exception message better:
'someMethod' is a *void method* and it *cannot* be stubbed with a *return
value*!
Voids are usually stubbed with Throwables:
doThrow(exception).when(mock).someVoidMethod();
If the method you are trying to stub is *overloaded* then make sure you are
calling
the right overloaded version.
Original comment by szcze...@gmail.com
on 17 Mar 2010 at 1:02
fixed some time ago
Original comment by szcze...@gmail.com
on 24 May 2010 at 5:32
Original comment by szcze...@gmail.com
on 24 May 2010 at 7:58
Original issue reported on code.google.com by
szcze...@gmail.com
on 17 Mar 2010 at 12:36