Spring has a MockHttpSession, or perhaps you could use
jMock?

d.

--- Session A Mwamufiya <[EMAIL PROTECTED]>
wrote:

> Hi,
> 
> How do I go about creating a dummy HttpSession
> object for unit testing a struts 2 app?
> 
> I have created a dummy HttpServletRequest object,
> but I can't instanciate an HttpSession in teh
> Request.getSession() method, because HttpSession is
> an abstract interface and I can't create an instance
> of it.
> 
> Any ideas?
> 
> Thanks
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to