Re: [Webwork-devel] StrutsTestCase for JUnit
Brought to you by:
baldree,
rickardoberg
From: Maurice P. <Ma...@Vi...> - 2002-02-18 13:14:32
|
On Sunday, February 17, 2002, at 07:42 PM, Edwin Desouza wrote: > Rickard, > Maybe a clone of this for WebWork.... > > http://strutstestcase.sourceforge.net/ The need to use Cactus, StrutsTestCase, etc.. when testing Struts is due to the fact that Struts actions are contaminated by HttpServletRequest and HttpServletResponse. This contamination makes Struts actions difficult to use outside of a servlet container. You always have to do mock objects or have the container present. This is totally unnecessary for WebWork. :-) Because of the exceptionally clean separation of Presentation vs. Business logic in WebWork you don't need an extra project to use it in an automated testing environment (or any other environment). JUnit is the only thing you need to write fully automated tests for WebWork actions. -Maurice |