Archive for December, 2011


Using Reflection To Create Mock Objects

Well-established tools like Mockito and EasyMock offer a powerful range of features for defining and interacting with mock objects. I use both heavily in my unit tests, and would recommend them to anyone looking for a mocking framework. Sometimes, however, a real (i.e. non-proxied) collaborator is called for, or adding third-party libraries may not be an option. In most […]

Email Updates

Subscribe to this blog and receive notifications of new posts by email.


Richard Ashworth
Head of Engineering at Goodlord
Experienced software engineer and technical leader. Passionate about functional programming and Agile methods. Check out my blog at


Read this blog in your favourite news reader: