Unit Testing Action Classes that are "Aware"

2008-10-24 Thread Nick Maunder | Oathouse
Hi I'm fairly new to Struts 2 I'm looking for a way of unit testing Struts 2 action classes which are (for example) ServletRequestAware. Cactus (the old way I did it) does not appear suitable (or is it and I'm missing something?) and HttpUnit does not seem to do the job either. I can t

Re: Unit Testing Action Classes that are "Aware"

2008-10-24 Thread stanlick
Unless you really *need* to bind your actions to Http* types, you should use RequestAware. This allows the same end goal indirectly through a Map. Scott On Fri, Oct 24, 2008 at 7:10 AM, Nick Maunder | Oathouse <[EMAIL PROTECTED]>wrote: > Hi > > > > I'm fairly new to Struts 2 > > > > I'm looking

RE: Unit Testing Action Classes that are "Aware"

2008-10-24 Thread Nick Maunder | Oathouse
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 24 October 2008 13:19 To: Struts Users Mailing List Subject: Re: Unit Testing Action Classes that are "Aware" Unless you really *need* to bind your actions to Http* types, you should use RequestAware. This allows the same end

Re: Unit Testing Action Classes that are "Aware"

2008-10-24 Thread stanlick
- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: 24 October 2008 13:19 > To: Struts Users Mailing List > Subject: Re: Unit Testing Action Classes that are "Aware" > > Unless you really *need* to bind your actions to Http* types, you should > use > Request