This post originated from an RSS feed registered with Java Buzz
by News Manager.
Original Post: Tammo Freese has released EasyMock 2.4, an open source mock object framework that "provides Mock...
Feed Title: Cafe au Lait
Feed URL: http://www.cafeaulait.org/today.rss
Feed Description: Cafe au Lait is the preeminent independent source of Java information on the net. Unlike many other Java sites, Cafe au Lait is neither beholden to specific companies nor to advertisers. At Cafe au Lait you'll find many resources to help you develop your Java programming skills here including daily news summaries, FAQ lists, tutorials, course notes, examples, exercises, book reviews, user groups and more.
Tammo Freese has released EasyMock 2.4, an open source mock object framework that "provides Mock Objects for interfaces in JUnit tests by generating them on the fly using Java's proxy mechanism. Due to EasyMock's unique style of recording expectations, most refactorings will not affect the Mock Objects." Personally I think MockObjects are vastly overused If you're making a type an interface just so you can mock it, the testing cart has started to drive the design horse. However they can sometimes be useful in cases where the natural design lends itself to being mocked. As long as you can resist the temptation to contort and complexify an API to support testing, mock objects can be useful. EasyMock is published under an MIT license.