struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David G. Friedman" <hum...@ix.netcom.com>
Subject RE: reality? CoR was Re: Struts or SpringFramework
Date Sat, 19 Feb 2005 20:03:57 GMT
Joe,

Your comment on testing CoR (Struts v1.3 or struts-chains) interests me.
How would that be done?  Do you suggest JUnit, TestNG, or something else? sI
looked a little at StrutsTestCase and something about it bothers me, but
what I can't exactly identify.

> public User getUser() {
>    return (User) this.getSessionScope().get("user");
> }
>
> Is this a huge gain?  I don't know.  But it's possible.
> And it means that you could test your class without
> needing to have a mock HttpServletRequest.

Regards,
David


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


Mime
View raw message