This is a great new feature of EasyMock 2.3: you can name your mocks as you create them.
This is wonderful news, I can't wait to try it out. Why? Because once you get going with half a dozen different mocks that implement the same interface, it's a lot of work to figure out which one actually failed. This is going to make creating and maintaining some of my more complex tests much easier.
hi howard,
ReplyDeleteI also use the names for the mocks even though I don't implement the same interface multiple times just different instances of mocks for different tests.
BR,
~A