Re: Struts 2.1.6 Test Examples

2009-05-14 Thread Greg Lindholm
gt; Cheers, > Doug > -- View this message in context: http://www.nabble.com/Struts-2.1.6-Test-Examples-tp23524593p23541135.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-ma

Re: Struts 2.1.6 Test Examples

2009-05-13 Thread Wes Wannemacher
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

RE: Struts 2.1.6 Test Examples

2009-05-13 Thread Kawczynski, David
(); 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

Re: Struts 2.1.6 Test Examples

2009-05-13 Thread Jim Collings
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

Struts 2.1.6 Test Examples

2009-05-13 Thread Doug Pham
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