You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Doug Pham <do...@yahoo.com> on 2009/01/17 10:21:30 UTC

Unit Testing Struts 2 Action

Hi All,
    I am putting together Struts 2, Hibernate & Sitemesh.  Where can I find information on how to unit test my new application actions?

Thanks,
Doug



      

Re: Unit Testing Struts 2 Action

Posted by Dave Newton <ne...@yahoo.com>.
Doug Pham wrote:
 > [...] information on how to unit test my new application actions?

When you hit "reply" and change the subject this is what happens in 
threaded view:

http://tinypic.com/view.php?pic=n5mog5&s=5

Please consider starting new threads.

Dave


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Unit Testing Struts 2 Action

Posted by Robert Harrison <rh...@gmail.com>.
Here's <http://www.rkcole.com/articles/struts/crudTutorial/step1.html> the
first step of a nice, three-part tutorial (I have no connection to author)

Bob

"Sure you can trust the government.  Just ask any Indian" - anonymous



On Sat, Jan 17, 2009 at 6:21 AM, Nils-Helge Garli Hegvik
<ni...@gmail.com>wrote:

> One of the things I really like about Struts 2 is how easy it is to
> unit test actions. Using the proper mechanisms for injecting what you
> need, unit testing the action should be as simple as instantiating the
> action, set the appropriate dependencies, and then execute it.
>
> Nils-H
>
> On Sat, Jan 17, 2009 at 10:21 AM, Doug Pham <do...@yahoo.com> wrote:
> > Hi All,
> >     I am putting together Struts 2, Hibernate & Sitemesh.  Where can I
> find information on how to unit test my new application actions?
> >
> > Thanks,
> > Doug
> >
> >
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

Re: Unit Testing Struts 2 Action

Posted by Nils-Helge Garli Hegvik <ni...@gmail.com>.
One of the things I really like about Struts 2 is how easy it is to
unit test actions. Using the proper mechanisms for injecting what you
need, unit testing the action should be as simple as instantiating the
action, set the appropriate dependencies, and then execute it.

Nils-H

On Sat, Jan 17, 2009 at 10:21 AM, Doug Pham <do...@yahoo.com> wrote:
> Hi All,
>     I am putting together Struts 2, Hibernate & Sitemesh.  Where can I find information on how to unit test my new application actions?
>
> Thanks,
> Doug
>
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org