+1 For Mockito. (I've used JMock and EasyMock too). Mockito is an
evolution of  EasyMock. Its small but critical differences just make
it quicker to write tests IMO.

> (The rest of the
> application is a 10-year-old ball-of-mud

If you want to test a legacy "ball of mud" the PowerMock+Mockito
combination is awesome. (PowerMock sits atop EasyMock or Mockito. )
PowerMock allows you to mock concrete *final* classes, *final* methods
and *static* methods using. And it actually worked in the extreme
cases I wanted to use it in. Highly recommended.

The excellent H2 in memory database can be useful for a pretty fast
way of stubbing a database  rather than trying to mock jdbc calls but
YMMMV. (Although lots of people recommend mocking your DAOs, your ball
of mud may not have them).

Good luck

-- 
You received this message because you are subscribed to the Google Groups "The 
Java Posse" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/javaposse?hl=en.

Reply via email to