I was thinking about Struts 1. But Laurie what + and - do You see in Struts1
testing ?
Laurie Harper wrote:


Laurie Harper wrote:
> 
> puchacz wrote:
>> Hi
>> 
>> I would like to ask if You (as Struts programmers) see some + or - of
>> testing Struts? I know JSF where I can test  all components as a
>> standalone
>> programs. How it looks in Struts? If in Struts are a lot of dependencies
>> which make Struts testing hard to test? 
> 
> It depends somewhat on which version of Struts you're talking about. 
> Generally, Struts 2 makes testing easier by reducing dependencies 
> through well defined abstraction interfaces.
> 
> For Struts 1 actions, it's a bit trickier since they generally expect 
> certain HTTP Servlet-specific objects to be available. You will 
> generally want to keep your actions as simple as possible and move most 
> of your application/business logic into POJO service classes to make 
> unit testing easier.
> 
> You can also use tools such as Cactus and HtmlUnit to help with creating 
> integration tests and such. Mock frameworks such as the one Martin 
> mentioned can also be a good choice.
> 
> L.
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Struts-testing-tf3579046.html#a10018567
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to