Closed GoogleCodeExporter closed 9 years ago
i got it.
i should use
doReturn(1111).when(spyJack).go();
>>> instead of
when(spyJack.go()).thenReturn(1111);
but i think it's a trap, right?
Original comment by heip...@gmail.com
on 24 Apr 2012 at 5:51
Hi,
Exactly! But I'm afraid we cannot do much about it.
However this is documented in the Javadoc. But we made it more explicit for the
next release on other javadoc places as well.
Hope that helps
Brice
Original comment by brice.du...@gmail.com
on 24 Apr 2012 at 9:20
OK, Thx a lot.
Original comment by heip...@gmail.com
on 25 Apr 2012 at 1:34
You are welcome, don't hesitate to use the mailing-list as well :)
Cheers,
Brice
Original comment by brice.du...@gmail.com
on 25 Apr 2012 at 10:50
Original issue reported on code.google.com by
heip...@gmail.com
on 24 Apr 2012 at 5:39