Month: May 2008

  • More Thoughts about Mocking and State

    Steve rightfully asked for the source of the bad feelings we had about about adding a sequential return value feature to Mockito. The issue is that a Mockito stub is stateless, i.e. the value returned depended solely on the parameters being passed in when calling the stub. Statelessness is generally a nice property. It makes…