|
Red Squirrel Reflections
Dave Hoover explores the psychology of software development
|
|
Fri, 05 May 2006jMock Hack: Argument Interceptor Mistaeks I Hav Made: Nat sent over a correction for the Argument Interceptor. Rather than use a jMock Constraint, it's more reliable to use a jMock Stub. We've updated the example. Colleague and TDD-maestro Tyler Jennings has written up a useful unit testing strategy (particularly for legacy code).Motivation: An Object you need to test is constructing another complex object internally which you cannot access and this object is passed to a collaborator you can replace with a mock. |