Month: April 2008

  • Mocking and Stubbing – When to roll your own?

    Szczepan was kind enough to spent some time with me tonight chatting about his puzzles on whether to include a feature into Mockito that allows a stubbed method to return differently on different calls. Clearly jmock and easymock allow you to chain return values and even pass in callbacks, that the mock evaluates to answer…