On May 6, 2007, at 2:13 AM, Ryan McKinley wrote:
As for the "do we want it" questions, i'm not really familiar with
easymock or jMock, so i don't have an opinion ...

I think we need something... without some mock framework, testing HttpServlets is difficult.


+1

Testing through Java container API's is hard. Back in the day* we used things like Cactus, and StrutsMockTestCase, and HttpUnit, CanooWebTest and such. IMO, though, simple mocks are all that's needed. In RubyLand, we mock Solr itself for unit tests, but have a suite of functional tests that work against a live server too.


It is unclear if the jmock license is compatible:
http://www.jmock.org/license.html

I think so. Looks like Struts uses it. I'd follow their lead and see how they note it.

        Erik

Reply via email to