I think it is possible but haven't tried it myself.

If you extend StrutsTestCase you'll have access to a Configuration object and the ActionProxyFactory. You should be able to setup your action and invoke it through the parameters interceptor. I couldn't find any example unit tests that do this in Struts or XWork though. It'll be horrible to setup but once complete you'll be able to reuse it.

Karr, David wrote:
This might be a violation of pure "unit test" guidelines, but is it
practical to test an action such that the type converters for properties
are automatically executed, just like they would normally?  It's nice
that actions are plain POJOs, but I wonder if it's practical to test the
processing of property values into the type converters.

---------------------------------------------------------------------
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