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 <[EMAIL PROTECTED]> wrote:
Can we use JUnit to test Struts 2 Action without
having the server launched?  Thanks for advice and
guidance.
--- Caroline Jen <[EMAIL PROTECTED]> wrote:

> Does the Struts2 integrate with other open source
> products; such as DWR, JMOCK/Junit testing?

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

Reply via email to