If the thought of writing all the mock object classes you might
need is intimidating, look at EasyMock (www.easymock.org),
a convenient Java API for creating mock objects dynamically.
-- Dave Thomas an Andy Hunt, The Pragmatic Programmers, in IEEE Software May/June 2002
We just started to use EasyMock in an XP project and found that it eases
writing our TestCases considerably. Moreover, it encourages us to make more
frequent use of MockObjects leading to compositional and interface oriented
designs. Not only is it well crafted and easy to use. It also enhances
communication in the TestCase for it exposes the expected calls on the
MockObject right where you need it.
-- Dierk Koenig, Canoo AG
We were about to implement our own Mocking based on reflect.Proxy,
but seems like you saved us lot of trouble.
-- Oren Gross, Mercury Interactive
I have been using EasyMock (v0.6) to unit test some web-based classes
(Enhydra application server presentation objects, in case you are
interested) without requiring the presence of the app server and I am very
impressed. It is extremely easy to use and makes writing the unit tests a breeze - great job!
-- Robert Leftwich
EasyMock can save a lot of legwork and make unit tests a lot
faster to write.
-- builder.com Java E-Newsletter for October 21, 2002