Closed GoogleCodeExporter closed 9 years ago
looking at it...
Original comment by szcze...@gmail.com
on 2 Oct 2008 at 3:44
Very interesting case. anyString() method returns null but also anyString()
makes a
mock remember that the argument can be any string. I will think about making
argument
matchers (e.g. anyString()) return not nulls in order to accommodate spies.
In meantime please use doReturn() API for such case. Sometimes you have to use
doReturn() for stubbing spies due to the way Mockito syntax is implemented. You
can
find more info here:
http://mockito.googlecode.com/svn/branches/1.5/javadoc/org/mockito/Mockito.html#
spy(T)
Original comment by szcze...@gmail.com
on 2 Oct 2008 at 6:17
fixed in trunk
Original comment by szcze...@gmail.com
on 12 Oct 2008 at 8:24
Original comment by szcze...@gmail.com
on 19 Apr 2009 at 7:40
This issue was closed by revision 831de24497.
Original comment by szcze...@gmail.com
on 7 Oct 2010 at 5:19
Original issue reported on code.google.com by
krzysiek.yaSiu@gmail.com
on 2 Oct 2008 at 1:40