freepascal / mockito

Automatically exported from code.google.com/p/mockito
0 stars 0 forks source link

Mock return values #71

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Return mocks for objects instead of null.

Code has been checked in to the trunk.

Original issue reported on code.google.com by iczechowski@gmail.com on 15 Apr 2009 at 1:41

GoogleCodeExporter commented 9 years ago
It's a new instance of ReturnValues that can be useful for legacy code. The way 
you
use it:

mock(Foo.class, RETURNS_MOCKS);

Original comment by szcze...@gmail.com on 20 Apr 2009 at 7:41

GoogleCodeExporter commented 9 years ago

Original comment by szcze...@gmail.com on 9 Jun 2009 at 3:15