struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Lindholm <>
Subject Re: how do you test your action classes?
Date Fri, 04 Sep 2009 13:19:30 GMT
You probably should sure the mail archives (on Nabble) as this question come
up very often.
In fact it should be in a FAQ but there is some disagreement as what
constitutes appropriate testing and what methods should be used.

I've written up this article [1] on how to unit test actions in the full
Struts 2 context with the Interceptor stack and validations.

Others, seem to think this is the wrong approach and this type of testing
should be done with a tool like Selenium.  Here is the last big thread on
testing methods [2].



On Fri, Sep 4, 2009 at 3:23 AM, Rusty Wright <> wrote:

> For example, how can I test the validations if I'm using an xml file with
> the validation specifications in it?  Seems like there are a lot of moving
> parts around the invocation of the action classes that make testing hard.
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message