Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

Re: Struts 2 and Other Open Source Products Integration

Ted Husted

2007-02-05

Replies:

Yes.

The Struts 2 Action doesn't expose HTTP in its signature. When access
to HTTP resources is needed, references to these resources can be
injected at runtime, but, to the Action, the servlet resources appear
as ordinary Maps. When running tests outside of the framework, the
test scaffolding can create and set a Map with whatever objects are
needed by the test.

For more, see http://struts.apache.org/2.x/docs/how-can-we-test-actions.html

-- HTH, Ted.
* http://www.husted.com/struts/

On 2/5/07, Caroline Jen <jiapei_jen@(protected):
> Can we use JUnit to test Struts 2 Action without
> having the server launched? Thanks for advice and
> guidance.
> --- Caroline Jen <jiapei_jen@(protected):
>
> > Does the Struts2 integrate with other open source
> > products; such as DWR, JMOCK/Junit testing?

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.