If you just want to test your actions in isolation then the statement is
true. In a test case just create a new action object, call the setters, call
the execute method, check the results. This simplistic test case really
doesn't need examples but it also doesn't really feel like you have fully
u
On Wed, May 13, 2009 at 3:00 PM, Kawczynski, David
wrote:
> I'm certainly no magician, but was still able to do this.
>
> If your action depends on session info, implement SessionAware
> and provide it with a Map of name-value pairs in the testcase.
>
> If your action depends on request info, impl
();
SomeAction someAction =
(SomeAction)springContext.getBean("someAction");
-Original Message-
From: Jim Collings [mailto:jlistn...@gmail.com]
Sent: Wednesday, May 13, 2009 2:24 PM
To: Struts Users Mailing List
Subject: Re: Struts 2.1.6 Test Examples
Ya. That
Ya. That sounds like a magic trick. ;-)
On 5/13/09, Doug Pham wrote:
> Hi All,
> In the main page one of the bullet point is:
> Easy-to-test Actions - Test Struts2 Actions directly, without resorting to
> mock HTTP objects.
>
> I would love to see a few examples of these.
>
> Cheers,
> Doug
4 matches
Mail list logo