This post originated from an RSS feed registered with Java Buzz
by Dan Haywood.
Original Post: Mockito-like automocking and optional autowiring in JMock
Feed Title: Domain Driven Design using Naked Objects
Feed URL: http://danhaywood.com/feed/
Feed Description: Naked Objects is an open source Java framework making it easy to develop domain-driven applications. This blog provides hints and tips to help you get the most out of Naked Objects and its sister projects, extending and supplementing the ideas in Dan's pragprog book of the same name.
I’m running my little TDD course again, and (as usual) it’s given rise to another small idea to make unit testing easier: provide Mockito-like automocking (using a @Mock annotation), and in addition perform autowiring of all mocks into the class under test. Now, to be honest, the difficult bit, automocking, is already in the JMock [...]